dimanche 17 février 2019

Laravel 5.5 Backpack CRUD gives 404 Failed to Load Resource

Using Laravel 5.5, backpack installed, and the Jefferey Way's generators. Following the instructions on the site, but when I load the page in the admin pages, I am getting an error Failed to Load Resource. The crud is called presenter.

Instructions Followed:

    # STEP 1. create migration
php artisan make:migration:schema create_tags_table --model=0 --schema="name:string:unique"
php artisan migrate

# STEP 2. create a model, a request and a controller for the admin panel
php artisan backpack:crud tag #use singular, not plural

# STEP 3. add a route to routes/backpack/custom.php (under the admin prefix and auth middleware): 
php artisan backpack:base:add-custom-route "CRUD::resource('tag', 'TagCrudController');"

# STEP 4. add a sidebar item
php artisan backpack:base:add-sidebar-content "<li><a href=''><i class='fa fa-tag'></i> <span>Tags</span></a></li>"

What I'm seeing in the browser:

VM189:1 POST http://localhost/FroliconServer/public/admin/presenter/search? 404 (Not Found)
(anonymous) @ VM189:1
send @ jquery.min.js:2
ajax @ jquery.min.js:2
sa @ jquery.dataTables.min.js:36
kb @ jquery.dataTables.min.js:37
N @ jquery.dataTables.min.js:29
S @ jquery.dataTables.min.js:31
ga @ jquery.dataTables.min.js:48
e @ jquery.dataTables.min.js:92
(anonymous) @ jquery.dataTables.min.js:92
each @ jquery.min.js:2
each @ jquery.min.js:2
m @ jquery.dataTables.min.js:82
h.fn.DataTable @ jquery.dataTables.min.js:164
(anonymous) @ Presenter:403
l @ jquery.min.js:2
c @ jquery.min.js:2
setTimeout (async)
(anonymous) @ jquery.min.js:2
u @ jquery.min.js:2
fireWith @ jquery.min.js:2
fire @ jquery.min.js:2
u @ jquery.min.js:2
fireWith @ jquery.min.js:2
ready @ jquery.min.js:2
_ @ jquery.min.js:2

Trying to add/edit the crud from the page also gives an error 404 page not found.

Any clue as to what I've done wrong?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire