Laravel 5
Auth Scaffolding in Laravel 5.2
This is a series of posts that showcase new features and aha moments in Laravel 5.2 1. Implicit Route Model Binding 2. Simplified Eloquent Global Scopes 3. Append Scheduled Tasks Output 4. Form Array Validation 5. Middleware Groups 6. Auth Scaffolding 7. Â Api Rate Limiting 8. More helper functions Laravel 5.2 has come out of beta and is production [...]
How to handle logs and reports in your app using Laravel 5 – Part 2
We Built a ShoutPad a.k.a ShoutBox in Part 1. Now, you can log anything in your app. From the creation of users, to users editing their profiles, to deletion of accounts to ever event happening in your app. In this tutorial, we’ll log users giving shoutouts. I’ll show you how to log to a file and to external services using Laravel [...]
How to create a custom Artisan Command in Laravel 5
Several artisan commands come shipped with Laravel 5. Run php artisan list and you will get all the artisan commands that you can use. Some of the most popular ones that are used on a daily basis are: php artisan serve, php artisan down, php artisan up, php artisan make:migration. Introduction The more your application grows, the more functionalities [...]
How to build a Project Management App in Laravel 5 – Part 9
Create a collaborators directory in the resources/views directory and create a form.blade.php. In the form.blade.php, add this: [crayon-5924fc2aafdc5759685545/] Then go to your show.blade.php in your projects directory and add @include('collaborators.form') just immediately after the div that gives us information about the number of comments, [...]
How to build a Project Management App in Laravel 5 – Part 8
Let’s provide the ability to add Comments to the various tasks. Create a new folder named comments in the views directory and create a form.blade.php inside the comments directory. Move the part of the show.blade.php that has to do with the comment form into form.blade.php file like so: form.blade.php [crayon-5924fc2ab2a85335953977/] [...]
Laravel 5.1 Intermediate QuickStart is Here!
Yesterday I wrote a post about how Taylor Otwell wrote a Beginner QuickStart for those looking to learn Laravel. Now, Today he has written an Intermediate QuickStart and it’s awesome. It’s so great to have such a legend in the industry simply creating avenues to make learning Laravel as easy as possible and creating a great community [...]
Manipulate & Verify Data Quickly Using Laravel Tinker
As developers, the terminal is our home and we can get, verify and manipulate several forms of data from there. Imagine a situation where you want to easily verify the data from your Model methods quickly or you want to ascertain the return data of a function in your Controller, you don’t have to open your browser and do all of that. [...]
How to build a Project Management App in Laravel 5 – Part 7
When you click on a project to see the details, it shows the tasks, files and comments form. Let’s see how we can add tasks to each Project. Create a new folder named tasks in the views directory and create a form.blade.php inside the tasks directory. Move the part of the show.blade.php that has to do with the task form into form.blade.php [...]
How to build a Project Management App in Laravel 5 – Part 6
Let’s go to show.blade.php [crayon-5924fc2ab8f4f251282102/] I have added the <a href="/projects/{{ $project->id }}/edit> link. So if you click on it right now, it shows an empty page. Let’s add the view for that. Go to ProjectController.php Add this to the edit function [crayon-5924fc2ab8f5f567091868/] So it fetches the [...]
How to build a Project Management App in Laravel 5 – Part 5
We need to make a little adjustment. On the Sign In page, you will discover that if the email or password is wrong, it doesn’t show the user a message, it just blocks the user from gaining access. Let’s take care of that. Add this in: layouts/partials/alerts.blade.php [crayon-5924fc2aba70d535615037/] Go to AuthController.php [crayon-5924fc2aba716109817991/] [...]