Ad

Laravel 5.8 Routing Issue

- 1 answer

I freshly installed Laravel 5.8 and have a routing issue where I can't give a URL and name it whatever I want.

Route::get('profile/my-profile', [
    'uses' => '[email protected]',
    'as' => 'profile'
]);

I tried the above, and the result is when I wrote like this, it doesn't show my profile picture in the browser. It only shows my name but when I wrote it like the following, it's okay.

Route::get('profile', [
    'uses' => '[email protected]',
    'as' => 'profile'
]);
Ad

Answer

This is working fine....

{{ asset(Auth::user()->profile_picture) }}
Ad
source: stackoverflow.com
Ad