samedi 27 avril 2019

asset('assets') return to wrong directory after using prefix in laravel

so this is the line i load my assets

<script src="/js/vendors/jquery-3.2.1.min.js"></script>

and here a code from web.php for toute settings

Route::resource('masuk', 'Backend\ParkirInController');

its works fine with this code. But when i using prefix like here

Route::group(['prefix'=>'parkir'], function (){
   Route::resource('masuk', 'Backend\ParkirInController');
});

the assets is not loaded and show an error like

require.min.js:5 GET http://localhost:8000/parkir/assets/js/vendors/jquery-3.2.1.min.js net::ERR_ABORTED 404 (Not Found)

so the name of prefix parkir is included to the assets url. anyone can help me?



from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2UMGyHo
via IFTTT

Aucun commentaire:

Enregistrer un commentaire