Member Since 2 Months Ago
3,100 experience to go until the next level!
In case you were wondering, you earn Laracasts experience when you:
Earned once you have completed your first Laracasts lesson.
Earned once you have earned your first 1000 experience points.
Earned when you have been with Laracasts for 1 year.
Earned when you have been with Laracasts for 2 years.
Earned when you have been with Laracasts for 3 years.
Earned when you have been with Laracasts for 4 years.
Earned when you have been with Laracasts for 5 years.
Earned when at least one Laracasts series has been fully completed.
Earned after your first post on the Laracasts forum.
Earned once 100 Laracasts lessons have been completed.
Earned once you receive your first "Best Reply" award on the Laracasts forum.
Earned if you are a paying Laracasts subscriber.
Earned if you have a lifetime subscription to Laracasts.
Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.
Earned once you have achieved 500 forum replies.
Earned once your experience points passes 100,000.
Earned once your experience points hits 10,000.
Earned once 1000 Laracasts lessons have been completed.
Earned once your "Best Reply" award count is 100 or more.
Earned once your experience points passes 1 million.
Earned once your experience points ranks in the top 50 of all Laracasts users.
Started a new Conversation Absence Table With Individual Records For Each Day (CRUD)
First of all, thanks for any help/advice in advance.
I'm trying to track sickness and absence; normally id just have a simple table with something along the lines of:
uid | user_id | absence_start | absence_end | reason
but I'd like to be able to split to add comments for individual dates when the user checks in with us, so far I've come up with:
Could someone help point me in the right direction re. best practice in these cases?
Started a new Conversation Laratrust - List Members Of Team
My question is specific to Laratrust in this instance but would be handy to know generally.
In Laratrust we have the following tables:
Users can be assigned to multiple teams at different levels (ie. User 1 could be in Team 1 as an Admin and Team 2 as a user and User 2, 3 & 4 could be a mixture of User/Admin/Editor of a mixture of different roles within the teams) admins already have the right to view and edit "users" within teams that they're admin of.
I was wondering if there is an efficient way to list the Users that are in each team the current Auth user is assigned to as Admin (including duplicate users across teams - ie. User 1 listed in Team 1 & Team 2 if they have been assigned to both)?
In straight PHP/MYSQL I would probably select all the records from role_user where the user_id = current user & role_id matched the role id for Admin then join the table on itself with Team_id and additionally join the Users table on user_id.
Is there a better way in Eloquent or an efficient way to write the same query in Laravel?