Laravel Aliases and Contracts

laravel alisases and contracts

Interfaces are a huge part of the Laravel framework. You can also call them contracts, this is how they are referred to on Github. This is the collection of interfaces that the Laravel framework itself makes use of. By browsing the contracts repository at Github, you can become familiar with the entire API of the framework. All of the concrete classes of the framework implement these various interfaces.…

8 Steps To Success With Laravel Events

laravel events and listeners

If there is one thing I love, it’s automatic code generation. There’s nothing quite like having helpful commands and tools to scaffold out boilerplate code you don’t feel like writing. In this tutorial, we’ll take a look at how Laravel, and Artisan in particular, make it easy to add event functionality to your application. Events are an implementation of the observer pattern, where an event takes place, and then one or more listeners respond to that event.…

How to Create Laravel Artisan Console Commands

How to Create Laravel Artisan Console Commands

Part of working with Laravel is not only creating the web based, or HTTP focused functionality, but also leveraging Artisan. Artisan is the part of your application that operates from the command line. If you’re used to strictly graphical user interface based applications, Artisan will be a bit to understand at first. With time however, you’ll begin to appreciate just how much you can accomplish via very simple commands you type in at the console.…

Scheduling Commands and Tasks In Laravel

Scheduling Commands and Tasks In Laravel

As of Laravel 5, there is a great feature that allows you to set up automated tasks and commands in your Laravel application. This does assume you are running the application on a *nix flavored server since this technique employs the ability to control cron jobs via PHP. It would probably be a safe bet however that if you are using Laravel, you are almost certainly running on a Linux platform.…

How to add a WordPress Blog to your Laravel Application

Laravel WordPress Integration

If you have a custom built Laravel Application and would like to add a WordPress Blog on the same domain, you’re in luck because this is pretty easy to do if you follow a few simple guidelines. Of course you have the option of building an entire blog system yourself right in Laravel, but it would be a lot of work to do it right, and why reinvent the wheel?…