Tag: database

  • User Roles Many to Many

    Another way to design user roles in your application is to create a many to many relationship. This means many users can have many roles.

  • Laravel Episode 4: Models, Migration, and Database

    Episode 4: Models, Migration, and Database Look at the /config/database.php file Use sqlite for demo database touch storage/database.sqlite Look at migration files Explain naming convention php artisan migrate Explain migration, rollback, and refresh Explain up() and down() Explain what timestamps() is Create a default record for user Create a migration for roles table