A
A
Alexander Ivanov2018-02-01 15:17:53
Laravel
Alexander Ivanov, 2018-02-01 15:17:53

Why in laravel on internal always 404?

I never had such guys with php to calmly go off. documentation and don't look for answers outside.
Those. something that according to the documentation should work by default, but does not work, but there is not a word about it in the documentation, or it is somewhere almost in existence.
laravel is no exception. Again, I go in order, the debugger is set to work, I go to laravel/public/auth/login and such a page. No.
I write in index.php ( link to the answer from the forum )

$request = Illuminate\Http\Request::capture();
$app->run($request);

I get
Fatal error: Uncaught Error: Call to a member function run() on unknown in C:\www\OpenServer\domains\laravel\public\index.php:39 Stack trace: #0 {main} thrown in C:\ www\OpenServer\domains\laravel\public\index.php on line 39
Sad even somehow.
Why doesn't auth/login work by default and how to fix it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Kuznetsov, 2018-02-01
@cimonlebedev

1. Try to configure Open Server so that by going to the domain (site.ru) it would take files along the path: site.ru/public.
2. Check your routes. If there is no such route, then it will not work accordingly.
3. Did you register such a command?
php artisan make:auth

A
Alexander Pushkarev, 2018-02-01
@AXP-dev

Routes are definitely added?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question