Level 75
In your config/session.php you can incread lifetime, son in your .env file set SESSION_LIFETIME to higher number.
/*
|--------------------------------------------------------------------------
| Session Lifetime
|--------------------------------------------------------------------------
|
| Here you may specify the number of minutes that you wish the session
| to be allowed to remain idle before it expires. If you want them
| to immediately expire on the browser closing, set that option.
|
*/
'lifetime' => env('SESSION_LIFETIME', 120),
'expire_on_close' => false,
How do you create your posts?
Auth::user()->posts()->create($request->all());
In view you have to show author of post
<span class="author">{{ $post->user->name }}</span>
You have propably there something like
<span class="author">{{ auth()->user()->name }}</span>