MIA305BRKL

MIA305BRKL

Member Since 2 Years Ago

Experience Points
18,800
Total
Experience

1,200 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
183
Lessons
Completed
Best Reply Awards
0
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 4
18,800 XP
Mar
26
2 weeks ago
Activity icon

Replied to Image Upload In Blade Or Vue?

I have been using DropZone and Vue to upload files to the various cloud providers. In my opinion, there are tons of front end JavaScript options out there to give you a seamless look or feel to your front end uploading processes (and I am not a front-end/designer type at all).

Reference: DropZone - https://www.dropzonejs.com/

Nov
03
5 months ago
Activity icon

Replied to QueryException Could Not Find Driver

Old post. But what helped me was after installing the driver:

sudo apt install php7.3-pgsql

I (forgot to) restart services such as apache2:

sudo systemctl restart apache2

I used MySQL by default tp llay arond with the built-in Laravel Authentication scaffolding out of the box. One day I was testing a PostgreSQL back-end. For some reason I was not able to run migration successfully after installing drivers and modifying the .env file.

Oct
30
5 months ago
Activity icon

Replied to Laravel Authenticates A User Then Redirects To The Login Page

I did some digging by setting up two differenet Laravel instances. The first worked out of the box. The second worked up until the point were I modified the Cats.php model.

The modified Cats.php model had the following primary key variable set:

    protected $primaryKey = 'kittykat_id';

Subsequent logins after the change resulted in the login process redirecting me back to the login page. Both instances worked as designed when there was no modifications to the primaryKey.

When I removed this protected primary key variable I was able to log in to the users table as well as any other table I created to store cats (aka users) and their passwords.

Adding the following protected key to my Cats.php class confirmed the above.

protected $primaryKey = 'id';

So by default the Authenticatable.php class is using avendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php Class to retrieve the primaryKey

Is there any way to use a different primaryKey database column for authentication AND still use Eloquent?

Oct
29
5 months ago
Activity icon

Started a new Conversation Laravel Authenticates A User Then Redirects To The Login Page

I have a weird issue with Laravel 6. I followed all the directions to scaffold the authentication system and it works fine. But when I use a different table to authenticate against (along with a customized registration form) the system does not act as predicted.

web.php

Route::get('/', function () {
    return view('welcome');
});

Auth::routes();

Route::get('/home', '[email protected]')->name('home');

Cats.php

class Cats extends Authenticatable
...

However, when I change the Users database to a different table I am not able to log in.

Symptoms:

  • I log in using a known account and a bad password. Result: These credentials do not match our records.
  • I log in using a known account and good password. Result: [I am redirected back to the login page]
  • I log in using a known account and good password. Result: [I am redirected back to the login page]
  • I log in using a known account and good password and select remember token. Result: [I am redirected back to the login page and the remember_token column in the table is populated]

Can someone point me in the right direction. Any help would be appreciated.