Join Joseph Lowery for an in-depth discussion in this video Connecting to a database, part of Up and Running with Laravel.
Many, many web apps rely heavily on a database…and Laravel recognizes that fact by supporting…a very robust database development system.…In this lesson, we'll start our exploration of that system,…by establishing a connection to a database.…First, for Laravel to connect to a database,…there has to be one created.…So, I'm gonna open up phpMyAdmin in the browser…and take care of that chore.…Now, you'll notice right here, on the screen,…we're running our Laravel custom web server,…using he port localhost 8000.…
We'll open up a new tab and go to my standard…Apache localhost slash phpMyAdmin,…where I have it already installed and hit enter.…Now I also have MySQL up and running,…make sure you have that taken care off as well.…So log in, go to databases and I'll create a new database,…which I'm gonna call firstapp.…Okay, my database is created, we'll handle the rest,…building of the tables, etc. in Laravel itself.…
All database connections for your Laravel project…are handled via a file found in the app config folder…
- Installing Laravel
- Handling testing
- Establishing an HTML view
- Connecting to a database
- Enabling version control
- Setting up-and-running unit tests
Skill Level Intermediate
Up and Running with PHP CodeIgniter (2013)with Jon Peck1h 30m Intermediate
Up and Running with Symfony2 for PHPwith Jon Peck2h 4m Intermediate
1. Introduction to Laravel
2. Creating Initial Laravel Pages
3. Displaying Laravel Code
4. Creating a Laravel Application
5. Testing 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.