catinodev

catinodev

Member Since 2 Years Ago

Experience Points
33,670
Total
Experience

1,330 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
319
Lessons
Completed
Best Reply Awards
1
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    Laracasts Evangelist

    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.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 7
33,670 XP
Apr
24
3 months ago
Activity icon

Replied to Count Records In Related Table

You can use withCount()

$roles = App\User::withCount('roles')->get();
Apr
18
3 months ago
Activity icon

Replied to How To Get Data From 1:n Raltion In Blade ?

if you have have a member_id on the students table, in the model for the student you can do

public function member()
{
	return $this->belongsTo('App\Member');
}

then $member->student->first_name will work. However, it may be more viable to keep the first name information on the members table

Activity icon

Replied to Where To Put Controller Logic If It Is Sufficiently Complex?

So what exactly is incorrect in the example you had with sending the email? Sending email needs to be a job on a queue rather than just a method with a service class?

Activity icon

Replied to Where To Store Videos And Other Assets

You can leverage services like Amazon's AWS/S3 to store and pull from a 'bucket' of video resources rather than have the files on the server, this provides relatively easy integration. If you can get away with it (depending on how complicated your homework project is), have teachers provide a Youtube or Vimeo url and persist that instead, then just embed the youtube video within the application.

Activity icon

Replied to Item Gets Deleted When Trying To Update

Good stuff, glad you saw it.

If it's any consolation one time I ran php artisan migrate:fresh on a production system with no backups enabled. Fun times

Activity icon

Awarded Best Reply on Item Gets Deleted When Trying To Update

What does the update method of your CategoryController look like? Have you verified that you are indeed hitting the update() method? From your network tab it seems like you are performing a get request, not a put which would update the resource

Activity icon

Replied to Item Gets Deleted When Trying To Update

What does the update method of your CategoryController look like? Have you verified that you are indeed hitting the update() method? From your network tab it seems like you are performing a get request, not a put which would update the resource

Activity icon

Started a new Conversation Where To Put Controller Logic If It Is Sufficiently Complex?

In a number of my projects the methods of my controllers are a mess: huge number of lines of code in some of them. I have read around the web that this is not a good practice and some pattern should be adopted to keep the controllers neat, as well as reduce code duplication. I have heard of a 'service layer' before, as well as using events in a similar manner -- but I'm not quite sure I understand the general workflow of integrating either of these options yet.

Is there a standard that most Laravel developers adopt for achieving this goal?

What does integrating a service layer look like in a Laravel application?

Apr
10
4 months ago
Activity icon

Replied to Custom Artisan Command That Calls Other Commands?

ah well now i feel dumb for not seeing that in the documentation. Thank you.

Activity icon

Started a new Conversation Custom Artisan Command That Calls Other Commands?

I have three custom artisan commands that run in my appication which email users about their accounts:

php artisan notify:expired
php artisan notify:expire-soon
php artisan notify:new-request

I want to be able to run these individually, but I would also like a php artisan notify:all command which would run the:

public function handle()
 {
        //
 }

method of all the above three commands at once. I would prefer not to refactor the commands into one notify:all and allow arguments for the flow.

Is it doable to call the handle() method of one command from another?