withSession(['loggedin' => true]) ->get('/admin'); $response->assertViewIs('admin.welcome'); } }