Simplified Eloquent Global Scopes 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 The use of Eloquent Global scopes has been [...]
Implicit Route Model Binding 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 comes with a new feature called [...]
Append scheduled tasks output 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 The Artisan Scheduler was a brand new killer [...]
Form Array Validation 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 Form Array Validation is now a breeze in [...]
Middleware groups 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 a new feature that allows [...]
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 handle logs and reports in your app using Laravel 5 – Part 1
Logging is a very important part of every application. Introduction When building an app, it’s always good to keep track of virtually every activity on the application. It gives you an overview of what your users are doing and what mistakes they make more often. From a security perspective, web application logs can be very useful in: [...]
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 [...]
Rack Deep Dive – Part 1
About 7 months ago, I started teaching ruby and rails at Andela. One of the biggest challenge in teaching rails is explaining all of the “magic” that Rails uses to do its job . The most effective way to really understand how things work in rails is to rebuild it from scratch. Below is a quote by Chad Fowler. The magic thing about Rails [...]