9 Replies
do u using laragon?
make sure the APP_URL correct
or maybe u can show us, the network tab
In CRUD it works correctly, it does not work in editing, it keeps loading
public static function form(Form $form): Form
{
return $form
->schema([
Forms\Components\TextInput::make('name')->required()->label('Descripción'),
Forms\Components\FileUpload::make('image_url')->image()->label('Imagen')
->preserveFilenames(),
]);
}
It can’t find the image. Either your .env APP_URL is off or you need and ASSET_URL in your env that point to the same app_url.
php artisan storage:link
?
yes
Console errors?
Solicitud desde otro origen bloqueada: la política de mismo origen impide leer el recurso remoto en http://127.0.0.1:8000/storage/imagenes/cursos/course-5.jpg (razón: falta la cabecera CORS 'Access-Control-Allow-Origin'). Código de estado: 200.
Uncaught (in promise) TypeError: NetworkError when attempting to fetch resource.
handlePageExpiry http://localhost:8000/livewire/livewire.js?id=239a5c52:4271
sendRequest http://localhost:8000/livewire/livewire.js?id=239a5c52:4250
Solucionado
APP_URL=http://localhost:8000
Thanks