I need to do admin panel on laravel ... I connected sleepingowl 4! I’m doing this video tutorial ( https://www.youtube.com/watch?v=ca4zn71n4BI ), according to the instructions from the official website of the owl, ALL of these data: the composer.json file

{... "require": { ... "laravelrus/sleepingowl": "4.*@dev" } } 

config / app.php file:

  'providers' => [ ... SleepingOwl\Admin\Providers\SleepingOwlServiceProvider::class, App\Providers\AppServiceProvider::class, ... ] 

.env file:

  DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_DATABASE=laravel5 DB_USERNAME=root DB_PASSWORD=root 

I enter http://blog.laravel.com/admin into the address bar (as stated in the official docks http://sleepingowladmin.ru/docs/configuration ) gives:

 Not Found The requested URL /admin was not found on this server. Apache/2.4.18 (Ubuntu) Server at blog.laravel.com Port 80 

Apache logs say:

 127.0.0.1 - - [21/Feb/2017:13:01:23 +0200] "GET /admin HTTP/1.1" 404 502 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0" 

Help configure admin panel!

Github Link:

  https://github.com/AlexBukreyev/blog.laravel 
  • one
    Have you really taken this step? $ php artisan sleepingowl:install - Alex
  • php artisan sleepingowl:install Publishing complete for tag [config]! Copied Directory [/vendor/laravelrus/sleepingowl/public] To [/public/packages/sleepingowl] Publishing complete for tag [assets]! Publish assets: ✔ SleepingOwl Framework successfully installed. yes did - Alexander

1 answer 1

Everything is fine, just list the Route:

 /routes/web.php 
 <? Route::get('/admin', function () { return view('admin.index'); /* только напишите путь к вашей view }); ?> 
  • one
    In my case, it should be resources / views / admin / index.blade.php - Basil Jimmy
  • one
    In your case, I understand you need to display login.blade.php - Basil Jimmy
  • one
  • one
    return view ('register'); - Basil Jimmy
  • one
    Ai ah, you need to run through php artisan serve - Basil Jimmy