rsferreira11

rsferreira11

Member Since 3 Years Ago

Experience Points 12,400
Experience Level 3

2,600 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 188
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

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

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

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

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    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 Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

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

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

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

17 Nov
3 years ago

rsferreira11 left a reply on How Can I Get My Own URL?

@Bahjaat Thanks, but I am creating one to practice =)

16 Nov
3 years ago

rsferreira11 left a reply on How Can I Get My Own URL?

I tried Request::path() but it didn't work in this file. I am trying to make a facade to generate Breadcrumb.

rsferreira11 left a reply on How Can I Get My Own URL?

@jlrdw, did you mean that I should use $_SERVER?

I guess for my question php itself get it using $_SERVER['PATH_INFO'].

Thank for the replies =)

rsferreira11 started a new conversation How Can I Get My Own URL?

Is there any command in Laravel (or in PHP) to get url where I am?

example, if I am in: "mysite.dev/products/update/3"

a command that takes "products/update/3".

13 Nov
3 years ago

rsferreira11 left a reply on Is Using Static Methods Bad For OOP?

@jlrdw When I've learnt OOP my professor used to say that using static calls makes more dependencies, then making harder to reuse your code in somewhere else.

rsferreira11 started a new conversation Is Using Static Methods Bad For OOP?

Taking this simple code as example:

´´´php $employee = new Employee(); $employee = $employee->find($id); ´´´

How bad would be if I do that instead:

´´´php $employee = Employee::find($id); ´´´

11 Nov
3 years ago

rsferreira11 started a new conversation How To Filter Data Of A Child Model

Hello there,

let's suppose I have 2 Models: Post and Comment. (One Post hasMany Comment)

I wanted to know how I can use Query Scopes from Comment in a Post object query. For example, I know I can do that:

$posts = Post::whereHas('comment', function($query) {
     //some querybuilder here 
})

But $query is a Query Builder instance and not a Comment instance, then I can't access my customs Scopes from Comment.

Does anyone know how can I handle it?

10 Nov
3 years ago

rsferreira11 left a reply on Is There A Way To List All Relationships Of A Model?

@Francismori7, I've thought that there were a easy way to do it =/

@thomaskim I wanted a generic way to show all parents and children model from a model

@mikemand thanks, gonna try to think about something

09 Nov
3 years ago

rsferreira11 started a new conversation Is There A Way To List All Relationships Of A Model?

For example if I have

Model Post - belongsTo an User - hasMany Posts

Can I use any method to list values? Example: array [ 'belongsTo' => ['User'], 'hasMany' => ['Posts'], ]