Join Joseph Lowery for an in-depth discussion in this video Solution: Migrations and data, part of Laravel 4 Essential Training (2014).
(electronic tone)…- How'd you do?…Not a terribly taxing challenge, I know,…but hopefully you followed through…just to reinforce the migration know how a bit.…Let's walk through how I handled it.…So first step, you need to establish the migration.…We'll go to the command line and enter…php artisan migrate:make,…and I'm going to call this one add-alumni.…
Laravel creates the migration file for us…so we can go back to our code editor…and drop in the functions.…I'll open that up from the app database folder,…migrations sub-folder, and it looks like…it's the last one there.…Looks good, okay.…Let's go to our up function first,…and we'll drop in a Schema::table method.…We're addressing paintings,…that particular database table.…We'll call in a function.…
I'm going to call this newcolumn.…We want to address newcolumn and then tell it…what type of new column we want.…This is a boolean, and the Laravel syntax…is great because it's just what you'd expect,…nothing odd or out of sorts about it.…You're creating a boolean column,…
Need a quick dive into Laravel? Check out this short primer, Up and Running with Laravel.
- Installing Laravel and Composer
- Routing requests
- Filtering routes
- Incorporating advanced controllers
- Creating a basic Blade template
- Developing a layout with child pages and forms
- Integrating a database
- Creating tables via migrations
- Outputting data
- Building a Laravel app
- Authenticating users
- Deploying Laravel code
Skill Level Intermediate
Q: In the "Installing Laravel" video, the author provides instructions for changing permissions on the web server directory, as well as setting up a new project and cd-ing to the new app directory, using commands on a Mac. What commands do I type in Windows?
1. Introduction to Laravel
2. Fundamental Laravel Concepts
3. Outputting Laravel Code
4. Integrating Databases
5. Querying Data with Eloquent ORM
6. Building a Laravel App
7. Deploying Your Laravel Code
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.