extjac

extjac

Member Since 6 Years Ago

Experience Points
10,105
Total
Experience

4,895 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
114
Lessons
Completed
Best Reply Awards
2
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 3
10,105 XP
Jul
23
1 week ago
Activity icon

Awarded Best Reply on Replace Users Table For Customers

RegisterController by default is checking duplicates against users table. Need to update that too.

Change from:

    protected function validator(array $data)
    {
        return Validator::make($data, [
            'name' => ['required', 'string', 'max:255'],
            'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],
            'password' => ['required', 'string', 'min:8', 'confirmed'],
        ]);
    }

To:

    protected function validator(array $data)
    {
        return Validator::make($data, [
            'name' => ['required', 'string', 'max:255'],
            'email' => ['required', 'string', 'email', 'max:255', 'unique:customers'],
            'password' => ['required', 'string', 'min:8', 'confirmed'],
        ]);
    }
Activity icon

Replied to Replace Users Table For Customers

RegisterController by default is checking duplicates against users table. Need to update that too.

Change from:

    protected function validator(array $data)
    {
        return Validator::make($data, [
            'name' => ['required', 'string', 'max:255'],
            'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],
            'password' => ['required', 'string', 'min:8', 'confirmed'],
        ]);
    }

To:

    protected function validator(array $data)
    {
        return Validator::make($data, [
            'name' => ['required', 'string', 'max:255'],
            'email' => ['required', 'string', 'email', 'max:255', 'unique:customers'],
            'password' => ['required', 'string', 'min:8', 'confirmed'],
        ]);
    }
Jul
22
1 week ago
Activity icon

Replied to Replace Users Table For Customers

never mind. Fix it.

Activity icon

Started a new Conversation Replace Users Table For Customers

I want to separate the back-end users from the front-end customers. The back-end users will login with one Laravel app using the users table. The front-end users/customers will login with other laravel app using the customers table. Both app will use the same DB.

I created a new table called customers with the same default user schema; also did the same for the customer_password_resets.

I tried adding the following to the users model but it did not work.

protected $table = 'customers';  

How do i change the "front-end" app to use the customers table instead of the users table?

Jul
07
4 weeks ago
Activity icon

Started a new Conversation Public IDs

Hello. I am building an app and I would like to generate public IDs with random charactes. For instance, instead of using ID "100" I would like to show a public ID "78144310-46f7-40c7-a8ff-1e8319969d82"

So I was wondering what would be better...

Str::orderedUuid();

OR

str_random(8);
Jun
07
1 month ago
Activity icon

Replied to Parse Email While Signup

nice! thanks!

Activity icon

Started a new Conversation Parse Email While Signup

I can only allow emails with .edu domain to register in the site. Is there any package available to parse email domains?

Apr
15
3 months ago
Activity icon

Started a new Conversation How Micro-services Talk To Each Other?

I would like to design a new app as micro-services. If you any experience; I was wondering what would be the best approach to make each micro-services talk to each other using Laravel or Lume.

Apr
14
3 months ago
Activity icon

Replied to How To Handle API Response In Controller

if( $data['status'] == 'success' ) {
//bla bla
}

would not work?