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