joshsalway

joshsalway

Member Since 6 Months Ago

Experience Points
39,910
Total
Experience

90 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
384
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start-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-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-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist 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 8
39,910 XP
Jan
23
4 days ago
Activity icon

Commented on API Resources

It would be great if there was a course surrounding this topic in a real world scenario..

Jan
21
6 days ago
Activity icon

Commented on Server-Fetched Partials

Very useful stuff thank you

Jan
05
3 weeks ago
Activity icon

Commented on How Do I Sort Tags By Letter

13:05 I hear "fuck" lol :)

But I think it's meant to be "Pluck"

Dec
23
1 month ago
Activity icon

Started a new Conversation Laracasts: Stay Full-screen Video So You Continue To Binge Like The Slogan?

Laracasts: Stay full-screen video so you continue to binge like the slogan?

Dec
17
1 month ago
Activity icon

Started a new Conversation How Do I Drop Foreign Key Constraints With Migrations?

How do I drop Foreign Key constraints with Migrations?

Laravel Docs says (https://laravel.com/docs/6.x/migrations#foreign-key-constraints): To drop a foreign key, you may use the dropForeign method. Foreign key constraints use the same naming convention as indexes. So, we will concatenate the table name and the columns in the constraint then suffix the name with "_foreign":

$table->dropForeign('posts_user_id_foreign');

Or, you may pass an array value which will automatically use the conventional constraint name when dropping:

$table->dropForeign(['user_id']);

However, It doesn't drop the foreign key constraint. I need to do it in combination to remove the FK constraint and then the column, like so:

Schema::table('posts', function (Blueprint $table) {
      $table->dropForeign('posts_user_id_foreign');
      $table->dropColumn('user_id');
});

Once I removed the foreign key and column, I was able to re-add the same column without the Foreign Key constraint and in the same correct order using the ->after('column') modifier, like so:

Edit:

    public function up()
    {
        Schema::table('posts', function (Blueprint $table) {
            $table->bigInteger('user_id')->after('id')->nullable();
        });
    }
Dec
16
1 month ago
Activity icon

Started a new Conversation How To Update Multiple Rows In Laravel Nova?

Considering this code below which is an action applied to a Resource in Laravel Nova:

I can only update 1 row, however not multiple rows?

How do I fix the code to allow the ability to update multiple rows?

public function handle(ActionFields $fields, Collection $models)
    {
        foreach ($models as $model) {
            try {
                $inventory = $model->inventory_item_id;
                $quantity = $fields->quantity;

                // Logging used for debugging
                Log::info('UpdateAvailablity action called: $inventory: ' . $inventory . ', $quantity: ' . $quantity);

                $inventoryLevelAvailabilityController = new InventoryLevelAvailabilityController();
                $inventoryLevelAvailabilityController
->updateProductInventoryStockAvailable($inventory, $quantity);
            } catch (\Exception $e) {
                $this->markAsFailed($model, $e);
            }
        }
    }
Dec
11
1 month ago
Activity icon

Replied to Multi-tenant Login, 2 Logins, With Multiple Guards?

Thanks Bobby, I guess I gotta learn about that.

Any good tutorials you'd recommend?

Activity icon

Started a new Conversation Multi-tenant Login, 2 Logins, With Multiple Guards?

I need to build a website that has multi-tenants and 2 logins in Laravel.

First I'd login to the school website for the grade and that will redirect to:

grade1.example.com

Once, we are logged-in to the grade level there is another login to login as a parent, I can then view the student profile linked to my account.

grade1.example.com/student/1

Does anyone have any suggestions on how to do this?

Dec
10
1 month ago
Activity icon

Started a new Conversation Multitenancy With Laravel

Multitenancy with Laravel would be a useful series? :)

Dec
04
1 month ago
Activity icon

Commented on Inheritance

This video is fresh just come out today yewww! Loving the update on this series.

Dec
03
1 month ago
Activity icon

Commented on Intro To Application Testing

Which TDD video?

Dec
02
1 month ago
Activity icon

Commented on Manage Your Local Dev Environment With Docker

Love these guest spotlight videos. It would be cool if people could apply to do series on here too.

Nov
29
1 month ago
Activity icon

Commented on Authentication With No Passwords?

Agree, I would love an update on this video or just some comments on what is now different.

Authentication and security are very important.

I wish Laravel and PHP valued Authentication and Security more. Like other programming languages.

Oct
17
3 months ago
Activity icon

Started a new Conversation Laravel Socialite?

Laravel Socialite?

Oct
10
3 months ago
Activity icon

Started a new Conversation Array Data Stored In Database, How Do I Convert That To Be Used With Eloquent?

Array data stored in Database, How do I convert that to be used with Eloquent?

Sep
12
4 months ago
Activity icon

Replied to Consuming 3rd Party External RESTful APIs With Guzzle?

Using Guzzle to consume 3rd party apis, laravel passport, running cron jobs to update a database regularly.

Sep
11
4 months ago
Activity icon

Commented on Easy HTTP Requests

Thank you, any chance you can update this?

Activity icon

Replied to Laravel 6.0 App.css

Please run "npm install && npm run dev" to compile your fresh scaffolding.

Sep
10
4 months ago
Activity icon

Started a new Conversation Consuming 3rd Party External RESTful APIs With Guzzle?

Is it possible to get more information about consuming external RESTful APIs?

Aug
26
5 months ago
Activity icon

Started a new Conversation Building An ECommerce Site With Laravel Tutorial?

Building an eCommerce site with Laravel tutorial?

Aug
25
5 months ago
Activity icon

Started a new Conversation Laravel 6 Content

Requesting Laravel 6 content. It's coming out Sept. 3rd (8 days)

Aug
21
5 months ago
Activity icon

Commented on Fast Workflow With Generators

Is the source code still working?

Aug
18
5 months ago
Activity icon

Commented on Core Concepts: Service Container And Auto-Resolution

I think I might need to watch this video a few times to understand it...

Activity icon

Commented on One-to-One

Thanks for the update on database relationships.

Aug
06
5 months ago
Activity icon

Commented on A Review

There you go he said it "I know it's not very interesting..." I thought I was the only one...