F
Filament14mo ago
Xiquita

Image Upload

Hello When I upload the image, I'm not able to get it to show in the column, how can I do that? I have nullable in the database table public function up(): void { Schema::create('users', function (Blueprint $table) { $table->id(); $table->string('name'); $table->string('email')->unique(); $table->timestamp('email_verified_at')->nullable(); $table->string('password'); $table->string('avatar')->nullable(); $table->integer('team_id')->nullable(); //$table->foreignIdFor(Team::class)->index(); $table->rememberToken(); $table->timestamps(); $table->softDeletes(); }); }
No description
Solution:
check if the file actually uploaded to the storage folder and run php artisan storage:link...
Jump to solution
12 Replies
Lara Zeus
Lara Zeus14mo ago
did you added avatar to User Model?
Xiquita
XiquitaOP14mo ago
no but ok
krekas
krekas14mo ago
lol. typical
Xiquita
XiquitaOP14mo ago
It registered in the database but does not show in the column
Xiquita
XiquitaOP14mo ago
No description
Lara Zeus
Lara Zeus14mo ago
open the dev tools and see what in the console, I think it related to the app_url in env
arul
arul14mo ago
.env change APP_URL=http://localhost Htt:// with your developmen domain exampel http//exampel.test
Xiquita
XiquitaOP14mo ago
Lara Zeus
Lara Zeus14mo ago
what is the error in the dev tools console in the browse ?
Xiquita
XiquitaOP14mo ago
No description
Solution
Lara Zeus
Lara Zeus14mo ago
check if the file actually uploaded to the storage folder and run php artisan storage:link
Xiquita
XiquitaOP14mo ago
yes it worked, thank you very much
Want results from more Discord servers?
Add your server