29.07.2016 Views

laravel-5

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Testing 358<br />

Of course, one common use of the session is for maintaining user state, such as the authenticated<br />

user. The actingAs helper method provides a simple way to authenticate a given user as the current<br />

user. For example, we may use a model factory to generate and authenticate a user:<br />

.<br />

1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!