In your first create view, explore writing a form in Laravel and building a holistic interface to create new entries in your database.
- [Instructor] For the create view, … we want to display a basic form to add a new booking. … This form is going to have a few drop downs, … one or two check boxes, … and fields for our date selection, … as well as a submit button. … We'll create a new file in our resources, … views, bookings, directory, … and we'll create this file and name it as create.blade.php. … We'll fill in this create form … by following the pattern that we've established earlier. … We'll first add in our extends directive with at extends, … parentheses and then single quotes, layouts.app. … That's what these little functions in blade with the at … symbol are called. … They're called blade directives. … These blade directives call some underlying php logic. … Next we'll build our form in the content section … with on line three at section parentheses … and then single quotes content. … After this we'll pull in a file that I've provided for you … in the exercise files. … If you open up the exercise files, … and in the files for this video, …
- Exploring Laravel
- Setting up simple authentication
- Controllers and routes
- Create and index view
- Show, edit, and destroy views
- Writing scopes in Laravel Eloquent
- Creating one-to-one relationships
Skill Level Beginner
MVC Frameworks for Building PHP Web Applicationswith Drew Falkman2h 57m Intermediate
Ajax with PHP: Add Dynamic Content to Websiteswith Kevin Skoglund3h 37m Intermediate
What you should know1m 52s
2. Starting Your Project
3. The Create and Index Views
4. The Show, Edit, and Destroy Views
- 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.