Laravel Episode 5: MySQL and Auth Design


episode 5

Episode 5: MySQL and Auth Design

 

  • Show how to configure MySQL
  • Create a database
  • Create a user specific to the database
  • Design the Users and Roles table
  • Move roles migration file so it is created before users – rename it
  • Edit user migration file so it uses role_id as foreign key
  • Create log in form
  • Create log in/out controller method
  • Create authenticate controller method
  • Create if/else to show login link or logout link
Share the Post:

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Related Posts

Photo of R1S with axe

Rivian R1 Dual Standard Is Gone: New Starting Prices, Last Lease Deals, and the R2 Launch

Rivian has officially confirmed the end of the Dual Standard configuration for the R1T and R1S, raising the entry price by $7,000 across the board. Between LFP battery calibration failures, the upcoming R2 reveal, and a potential pricing strategy shift, there’s a lot more going on here than a simple trim cut. Here’s what it means for buyers — and what it could signal about where Rivian is headed.

Read More