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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s