Support the ongoing development of Laravel.io →

paulgoodfield

Joined 2 May 2014

Statistics

Threads 2
Replies 5
Solutions 1
Articles 0

Unit testing using basic.once auth filter

I'm attempting to build a RESTful API using stateless authentication. However, I'm having trouble un...

0 Likes
0 Replies

Can't login user in test

I'm attempting to login a user in a test using Auth::loginUsingId(1); ...but I'm getting the follow...

0 Likes
8 Replies
Solved
replied 10 years ago

Can't login user in test

Realised that my Seeder class wasn't structured properly so it was only seeding the memory database...

0 Likes
Solved
replied 10 years ago

Can't login user in test

Or does the fact that this test is in a subfolder of the app/tests directory cause any issue? Here's...

0 Likes
replied 10 years ago

Can't login user in test

Do the tests automatically have access to Laravel's facades or do I need to add something?

0 Likes
replied 10 years ago

Can't login user in test

Nope, User model hasn't been changed from inital Laravel setup: use Illuminate\Auth\UserInterface; u...

0 Likes
replied 10 years ago

DB Seeding Already Populated Table

I'm just starting a new web app and have encountered the same issue. Would it be best practice to no...

0 Likes

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.