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?…

Easy PHP Dates and Times With Carbon

Easy PHP Dates and Times With Carbon

PHP Dates and Times With Carbon are made incredibly simple with the intuitive API provided by this great library. Carbon extends the native PHP DateTime class which gives it access to all of the functions you are familiar with, in addition to some other great new features. Carbon makes use of it’s own namespace aptly named Carbon. When you get started, make sure to import that namespace such as use Carbon/Carbon; to get up and running quickly.…

Laravel Collections Tutorial

collection

Let’s take an adventure on a Laravel collections tutorial. Having used the framework for some time, I’ve gotten used to working with the various features of it. One of the things I’ve been meaning to really dig into is the Collections aspect of Laravel. You’ll be dealing with laravel collections all the time, and up until this point, maybe you’re like me and just kind of figured out what you needed as you went.…