Kang Baso
Kang Baso
FFilament
Created by Kang Baso on 11/27/2024 in #❓┊help
filament fixing image path
im so sorry for my english
32 replies
FFilament
Created by Kang Baso on 11/27/2024 in #❓┊help
filament fixing image path
this is the fucking error, i had this error for 6 hour lol
32 replies
FFilament
Created by Kang Baso on 11/27/2024 in #❓┊help
filament fixing image path
thanks for your help, i found my error. i just clear all cache from app folder and boom the image is show
32 replies
FFilament
Created by Kang Baso on 11/27/2024 in #❓┊help
filament fixing image path
php artisan about

Environment ...................................................................................................
Application Name ...................................................................................... Laravel
Laravel Version ....................................................................................... 11.34.0
PHP Version ............................................................................................ 8.2.12
Composer Version ........................................................................................ 2.8.2
Environment ............................................................................................. local
Debug Mode ............................................................................................ ENABLED
URL ............................................................................................ 127.0.0.1:8000
Maintenance Mode .......................................................................................... OFF
Timezone .................................................................................................. UTC
Locale ..................................................................................................... en

Cache .........................................................................................................
Config ............................................................................................. NOT CACHED
Events ............................................................................................. NOT CACHED
Routes ............................................................................................. NOT CACHED
Views .................................................................................................. CACHED

Drivers .......................................................................................................
Broadcasting .............................................................................................. log
Cache ................................................................................................ database
Database ................................................................................................ mysql
Logs ........................................................................................... stack / single
Mail ...................................................................................................... log
Queue ................................................................................................ database
Session .............................................................................................. database

Filament ......................................................................................................
Blade Icons ........................................................................................ NOT CACHED
Packages ...................................................... filament, forms, notifications, support, tables
Panel Components ................................................................................... NOT CACHED
Version .............................................................................................. v3.2.124
Views ........................................................................................... NOT PUBLISHED

Livewire ......................................................................................................
Livewire .............................................................................................. v3.5.12
php artisan about

Environment ...................................................................................................
Application Name ...................................................................................... Laravel
Laravel Version ....................................................................................... 11.34.0
PHP Version ............................................................................................ 8.2.12
Composer Version ........................................................................................ 2.8.2
Environment ............................................................................................. local
Debug Mode ............................................................................................ ENABLED
URL ............................................................................................ 127.0.0.1:8000
Maintenance Mode .......................................................................................... OFF
Timezone .................................................................................................. UTC
Locale ..................................................................................................... en

Cache .........................................................................................................
Config ............................................................................................. NOT CACHED
Events ............................................................................................. NOT CACHED
Routes ............................................................................................. NOT CACHED
Views .................................................................................................. CACHED

Drivers .......................................................................................................
Broadcasting .............................................................................................. log
Cache ................................................................................................ database
Database ................................................................................................ mysql
Logs ........................................................................................... stack / single
Mail ...................................................................................................... log
Queue ................................................................................................ database
Session .............................................................................................. database

Filament ......................................................................................................
Blade Icons ........................................................................................ NOT CACHED
Packages ...................................................... filament, forms, notifications, support, tables
Panel Components ................................................................................... NOT CACHED
Version .............................................................................................. v3.2.124
Views ........................................................................................... NOT PUBLISHED

Livewire ......................................................................................................
Livewire .............................................................................................. v3.5.12
32 replies
FFilament
Created by Kang Baso on 11/27/2024 in #❓┊help
filament fixing image path
3.2
32 replies
FFilament
Created by Kang Baso on 11/27/2024 in #❓┊help
filament fixing image path
are i need to clear cache?
32 replies
FFilament
Created by Kang Baso on 11/27/2024 in #❓┊help
filament fixing image path
No description
32 replies
FFilament
Created by Kang Baso on 11/27/2024 in #❓┊help
filament fixing image path
are that error from my filesystem.php file?
32 replies
FFilament
Created by Kang Baso on 11/27/2024 in #❓┊help
filament fixing image path
No description
32 replies
FFilament
Created by Kang Baso on 11/27/2024 in #❓┊help
filament fixing image path
no, i try all path, and the true path is http://127.0.0.1:8000/storage/01JDNRW7DXKSYENEXDVCGJVG8N.png
32 replies
FFilament
Created by Kang Baso on 11/27/2024 in #❓┊help
filament fixing image path
hm where i can put log to see where what image path, i want to try change the image to see that
32 replies
FFilament
Created by Kang Baso on 11/27/2024 in #❓┊help
filament fixing image path
in my database that column just containt file name
32 replies
FFilament
Created by Kang Baso on 11/27/2024 in #❓┊help
filament fixing image path
no i didnt setting anything
32 replies
FFilament
Created by Kang Baso on 11/27/2024 in #❓┊help
filament fixing image path
this my model:
class Menu extends Model
{
protected $fillable = [
'name',
'description',
'price',
'is_avaible',
'thumbnail'
];

public function photos()
{
return $this->hasMany(MenuPhoto::class);
}

public function orderItems()
{
return $this->morphMany(OrderItem::class, 'item');
}

public function packages()
{
return $this->belongsToMany(package::class, 'package_menus')->withPivot('quantity')->withTimestamps();
}
}
class Menu extends Model
{
protected $fillable = [
'name',
'description',
'price',
'is_avaible',
'thumbnail'
];

public function photos()
{
return $this->hasMany(MenuPhoto::class);
}

public function orderItems()
{
return $this->morphMany(OrderItem::class, 'item');
}

public function packages()
{
return $this->belongsToMany(package::class, 'package_menus')->withPivot('quantity')->withTimestamps();
}
}
32 replies
FFilament
Created by Kang Baso on 11/27/2024 in #❓┊help
filament fixing image path
public static function form(Form $form): Form
{
return $form
->schema([
Forms\Components\TextInput::make('name')
->label('Name')
->required(),
Forms\Components\Textarea::make('description')
->label('Description'),
Forms\Components\TextInput::make('price')
->label('Price')
->numeric()
->required(),
Forms\Components\FileUpload::make('thumbnail')
->label('Thumbnail'),
Forms\Components\Repeater::make('photos')
->relationship('photos')
->schema([
Forms\Components\FileUpload::make('images')
->label('Photos'),
]),
Forms\Components\Toggle::make('is_avaible')
->label('Is Available')
->default(true),
]);
}
public static function form(Form $form): Form
{
return $form
->schema([
Forms\Components\TextInput::make('name')
->label('Name')
->required(),
Forms\Components\Textarea::make('description')
->label('Description'),
Forms\Components\TextInput::make('price')
->label('Price')
->numeric()
->required(),
Forms\Components\FileUpload::make('thumbnail')
->label('Thumbnail'),
Forms\Components\Repeater::make('photos')
->relationship('photos')
->schema([
Forms\Components\FileUpload::make('images')
->label('Photos'),
]),
Forms\Components\Toggle::make('is_avaible')
->label('Is Available')
->default(true),
]);
}
32 replies
FFilament
Created by Kang Baso on 11/27/2024 in #❓┊help
filament fixing image path
i done doing that, but nothing change
32 replies
FFilament
Created by Kang Baso on 11/27/2024 in #❓┊help
filament fixing image path
sorry for my english
32 replies