Laravel Episode 7: CRUD Part 1


episode 7

Episode 7: CRUD Part 1

 

  • Changes since the last episode.
    • Switched out laravelcollective code to standard html code.
    • Moved validation messages to part of the form.
    • Updated elixir to version 5.
  • Create a new migration for products table.
    • id int(11)
    • product_name varchar(255)
    • sku varchar(30)
    • price decimal(5,2)
    • description text
    • timestamps
php artisan make:migration create_products_table
  • Create restful routes for products.
  • Create model for Product.
  • Order of creation.
    • view all page
      • pagination
      • view (show) link for each record
      • if no record exist, show message, else show records
    • create record page
      • form validation

Comments

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.