我刚刚安装了Laravel 5.8并且有一个路由问题,我无法提供URL并将其命名为我想要的任何内容。
Route::get('profile/my-profile', [
'uses' => 'ProfileController@profile',
'as' => 'profile'
]);
我尝试了上面的结果,结果是当我这样写的时候,它没有在浏览器中显示我的个人资料图片。它只显示我的名字,但是当我像下面那样写它时,它没关系。
Route::get('profile', [
'uses' => 'ProfileController@profile',
'as' => 'profile'
]);
这工作正常....
{{ asset(Auth::user()->profile_picture) }}