How to Build a Blog with Laravel
Parts 24 - Slugs in our URL Routes [How to Build a Blog with Laravel 5 Series]
Hide/Show description
It is time to finish up working on our slugs. We have modified our database to accept slugs, made sure it was indexed, then we went back and finished up our Post CRUD to accept slugs and now its time to implement them when people search for them in our application.
We learn a lot about Laravel Routes in this video and passing in parameters into our methods. We will create a new controller called BlogController, which will contain our single post, and eventually our listed posts and so forth.
Route::get() is how we set a route for our slugs. We will also make sure that the parameters are compatible by chaining a where() method after our Route::get().
--- MORE FROM THIS SERIES ---
Previous Video [Part 23]: https://youtu.be/mM2bZiD06A0
Next video [Part 25]: Coming Soon
Full Playlist for the "How to Build a Blog with Laravel" Series: https://www.youtube.com/playlist?list=PLwAKR305CRO-Q90J---jXVzbOd4CDRbVx
--- FOLLOW ME ---
Subscribe for New Releases!
Twitter - http://twitter.com/_jacurtis
(ask me questions!)
--- QUESTIONS? ---
Leave a comment below and I or someone else can help you.
For quick questions you may also want to ask me on Twitter, I respond almost immediately.
Email me [email protected] for private or detailed inquiries.
Thanks for all your support!
---
Tags: slugs in our URL and routing in PHP Laravel. Laravel 5.2 Framework Tutorial Easy to learn. Best tut about Laravel. Build a blog with Laravel Tutorial. Beginner tutorial. How to video. PHP framework easy best tutorial. Laravel 5 coding in PHP with Alex.
-
How to Build a Blog with Laravel - Part 1 (Exploring File Structure)
Part 2 - What is MVC [How to Build a Blog with Laravel 5 Series]
Part 3 - Getting Started [How to Build a Blog with Laravel 5 Series]
Part 4 - Controller Basics [How to Build a Blog with Laravel 5 Series]
Part 5 - Passing Data to a View [How to Build a Blog with Laravel 5 Series]
Part 5½ - Designing our Blog Pages [How to Build a Blog with Laravel 5 Series]
Part 6 - Layouts with Blade [How to Build a Blog with Laravel 5 Series]
Part 7 - Partials with Blade [How to Build a Blog with Laravel 5 Series]
Part 8 - Model Basics [How to Build a Blog with Laravel 5 Series]
Part 9 - Migration Basics [How to Build a Blog with Laravel 5 Series]
Part 10 - CRUD and RESTful Routes [How to Build a Blog with Laravel 5 Series]
Part 11 - "Create" function and Forms in Laravel [How to Build a Blog with Laravel 5 Series]
Part 12 - Inserting Data and Validating [How to Build a Blog with Laravel 5 Series]
Part 12½ - Javascript Form Validation [How to Build a Blog with Laravel 5 Series]
Part 13 - Sessions & Flash Messages [How to Build a Blog with Laravel 5 Series]
FAQs [How to Build a Blog with Laravel]
Part 14 - Reading from our Database [How to Build a Blog with Laravel 5 Series]
Part 15 - Working with Dates from Database [How to Build a Blog with Laravel 5 Series]
Part 16 - Read our CRUD [How to Build a Blog with Laravel 5 Series]
Part 16½ - Fixing a Bug, Making Navigation States work [How to Build a Blog with Laravel Series]
Part 17 - Model-Form Binding [How to Build a Blog with Laravel 5 Series]
Part 18 - Updating Form Data to Database [How to Build a Blog with Laravel 5 Series]
Part 19 - Deleting Resources with CRUD [How to Build a Blog with Laravel 5 Series]
Part 20 - Pagination in Laravel [How to Build a Blog with Laravel 5 Series]
Part 21 - Query Builder [How to Build a Blog with Laravel Series]
Part 22 - Adding Slug URLs to Our Blog [How to Build a Blog with Laravel Series]
Part 23 - Adding Slugs to our Posts CRUD [How to Build a Blog with Laravel 5 Series]
Parts 24 - Slugs in our URL Routes [How to Build a Blog with Laravel 5 Series]
Part 24 ½ - Fixing a Slug Bug [How to Build a Blog with Laravel Series]
Part 25 - Adding Features to our Blog Controller [How to Build a Blog with Laravel 5 Series]
Part 26 - Authentication Theory and Overview [How to Build a Blog with Laravel 5 Series]
Part 27 - Laravel Authentication Routes Views [How to Build a Blog with Laravel Series]
Part 28 - Authentication Methods [How to Build a Blog with Laravel 5 Series]
Part 29 - Authentication User Experience [How to Build a Blog with Laravel 5 Series]
Part 30 - Password Reset Emails [How to Build a Blog with Laravel 5 Series]
Part 30½ - Authentication Shortcut [How to Build a Blog with Laravel 5 Series]
Part 31 - Blog Categories and Learning Relationships [How to Build a Blog with Laravel 5 Series]
Part 32 - Categories CRUD [How to Build a Blog with Laravel Series]
Part 33 - Assigning Categories to Posts [How to Build a Blog with Laravel Series]
Part 34 - Many to Many Relationships [How to Build a Blog with Laravel 5 Series]
Part 35 - Building Our Tag Model [How to Build a Blog with Laravel 5 Series]
Part 36 - Starting our Tag CRUD [How to Build a Blog with Laravel 5 Series]
Part 37 - Adding Tag UI/UX [How to Build a Blog with Laravel 5 Series]
Part 38 - Show, Edit, Update our Tags [How to Build a Blog with Laravel 5 Series]
Part 39 - Deleting Tags Safely [How to Build a Blog with Laravel 5 Series]
Part 40 - Sending Email from Contact Form [How to Build a Blog with Laravel 5 Series]
Part 41 - Adding Comments [How to Build a Blog with Laravel 5 Series]
Part 41½ - Styling our Comments [How to Build a Blog with Laravel 5 Series]
Part 42 - Managing Comments [How to Build a Blog with Laravel 5 Series]
Part 43 - Adding a WYSIWYG Editor [How to Build a Blog with Laravel 5 Series]
Part 44 - Output HTML from Database [How to Build a Blog with Laravel 5 Series]
Part 45 - Security Concerns with WYSIWYG Editors [How to Build a Blog with Laravel 5 Series]
Part 46 - Image Upload for Posts [How to Build a Blog with Laravel 5 Series]
Part 47 - Validating, Updating, and Deleting Images [How to Build a Blog with Laravel 5 Series]