YoVDO

Essential Laravel Model Conventions for Beginners

Offered By: Code With Dary via YouTube

Tags

Laravel Courses Databases Courses PHP Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore essential Laravel model conventions in this 14-minute tutorial designed for beginners. Learn how to customize timestamps, specify date formats using the $dateFormat property, modify column names for created_at and updated_at, set default attribute values, and work with multiple databases using the $connection property. Master these key concepts to enhance your efficiency with Eloquent models and leverage Laravel's powerful ORM features. Gain valuable insights to write cleaner, more maintainable code in your Laravel applications, whether you're new to the framework or an experienced developer.

Syllabus

- Introduction
- Changing table names
- Changing the primary key
- Incrementing property
- Changing the key type of the primary key
- Disabling the updated_at and created_at
- Customizing the format of your models timestamps
- Customize the names of the timestamps columns
- Set default attribute values
- Change the database interacting with a particular model


Taught by

Code With Dary

Related Courses

Introduction to Functional Programming
Delft University of Technology via edX
Introduction to Office 365 Development and APIs
Microsoft via edX
Web Development and Design using Wordpress
California Institute of the Arts via Kadenze
Build a Basic PHP Website Course (How To)
Treehouse
Web Applications for Everybody
Independent