Address bar problems

Posted 1 month ago by DEStroyerll

Guys, first problem! I created user authentication and I want to change the name of the link in the route

Auth::routes();

Route::get('/dashboard', '[email protected]')->name('dashboard');

Instead of / home, I specified /dashboar but this not working He writes that there is no such page !!! Second problem, I have a group of routes I created for the admin here it is

Route::group(['prefix'=>'admin', 'middleware'=>'auth'], function () {

    Route::get('/', ['uses'=>'Admin\[email protected]']);

    //Маршрут для редактирования материала блога.
    Route::resource('/articles', 'Admin\ArticlesController');
});

But when I want to follow the links to this route to me

@section('content')
<div class="container">
    <div class="row">
        <div class="col-md-8 col-md-offset-2">
            <div class="panel panel-default">
                <div class="panel-heading">Dashboard</div>

                <div class="panel-body">
                    @if (session('status'))
                        <div class="alert alert-success">
                            {{ session('status') }}
                        </div>
                    @endif

                    You are logged in! Now you can <a href="{{route('admin')}}">manage </a>content.
                </div>
            </div>
        </div>
    </div>
</div>
@endsection

Again I get an error and say that there is no such view (( Brothers help !!! I already broke my head in conjectures.

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.