can access panel
This commit is contained in:
@@ -11,7 +11,6 @@ use App\Models\CarouselSlide;
|
||||
use BackedEnum;
|
||||
use Filament\Resources\Resource;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Table;
|
||||
|
||||
class CarouselSlideResource extends Resource
|
||||
|
||||
@@ -18,7 +18,7 @@ class CarouselSlideForm
|
||||
->image()
|
||||
->visibility('public')
|
||||
->required(),
|
||||
|
||||
|
||||
TextInput::make('title')
|
||||
->label('Sözbaşy'),
|
||||
TextInput::make('subtitle')
|
||||
|
||||
@@ -11,7 +11,6 @@ use App\Models\Category;
|
||||
use BackedEnum;
|
||||
use Filament\Resources\Resource;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Table;
|
||||
|
||||
class CategoryResource extends Resource
|
||||
|
||||
@@ -11,7 +11,6 @@ use App\Models\Product;
|
||||
use BackedEnum;
|
||||
use Filament\Resources\Resource;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Table;
|
||||
|
||||
class ProductResource extends Resource
|
||||
|
||||
@@ -4,8 +4,8 @@ namespace App\Filament\Resources\Products\Schemas;
|
||||
|
||||
use Filament\Forms\Components\FileUpload;
|
||||
use Filament\Forms\Components\Select;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Forms\Components\Textarea;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Forms\Components\Toggle;
|
||||
use Filament\Schemas\Schema;
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@ use App\Models\Category;
|
||||
use App\Models\Collection;
|
||||
use App\Models\Product;
|
||||
use App\Settings\GeneralSettings;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class HomeController extends Controller
|
||||
{
|
||||
|
||||
@@ -4,6 +4,7 @@ namespace App\Models;
|
||||
|
||||
// use Illuminate\Contracts\Auth\MustVerifyEmail;
|
||||
use Database\Factories\UserFactory;
|
||||
use Filament\Panel;
|
||||
use Illuminate\Database\Eloquent\Attributes\Fillable;
|
||||
use Illuminate\Database\Eloquent\Attributes\Hidden;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
@@ -17,6 +18,11 @@ class User extends Authenticatable
|
||||
/** @use HasFactory<UserFactory> */
|
||||
use HasFactory, Notifiable;
|
||||
|
||||
public function canAccessPanel(Panel $panel): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the attributes that should be cast.
|
||||
*
|
||||
|
||||
@@ -7,16 +7,27 @@ use Spatie\LaravelSettings\Settings;
|
||||
class GeneralSettings extends Settings
|
||||
{
|
||||
public string $site_title;
|
||||
|
||||
public string $marquee_text;
|
||||
|
||||
public string $about_label;
|
||||
|
||||
public string $about_title;
|
||||
|
||||
public string $about_text;
|
||||
|
||||
public string $about_image;
|
||||
|
||||
public string $find_us_label;
|
||||
|
||||
public string $instagram_url;
|
||||
|
||||
public string $tiktok_url;
|
||||
|
||||
public string $footer_address;
|
||||
|
||||
public string $footer_phone;
|
||||
|
||||
public string $footer_copyright;
|
||||
|
||||
public static function group(): string
|
||||
|
||||
Reference in New Issue
Block a user