Creating a Laravel 5 Package

Published on

For this example we will use the vendor craigzearfoss and the package bullets. In your project folder create the package folder packages/VENDOR_NAME/PACKAGE_NAME. Inside of the package folder create a directory named src. Use artisan to create a service provider. php artisan make:provider BulletsServiceProvider The service provider will be in the app/Providers directory. Move it to … Continue reading Creating a Laravel 5 Package

Laravel Homestead Creation

Published on

Homestead Includes: Ubuntu 14.04 PHP 5.6 HHVM Nginx MySQL Postgres Node (with Bower, Grunt, and Gulp) Redis Memcached Beanstalkd Laravel Envoy Fabric + HipChat Extension Before you begin. Install Composer. See Installing Composer on Ubuntu. Create a Laravel project. composer create-project laravel/laravel PROJECT_NAME –prefer-dist Download VirtualBox from https://www.virtualbox.org/wiki/Downloads and install. (Make sure you select the … Continue reading Laravel Homestead Creation

Using Elixir with Laravel

Published on

Elixir is a wrapper around Gulp that creates useful syntax. package.json is the node equivalent of composer.json. npm install is the node equivalent of composer install. Preliminary setup: Install Node on you system. sudo apt-get update sudo apt-get install nodejs sudo apt-get install npm sudo apt-get install libnotify-bin sudo ln -s /usr/bin/nodejs /usr/bin/node Install Gulp … Continue reading Using Elixir with Laravel

Apache 2.4 Laravel Server Configuration

Published on

<VirtualHost *:80> ServerAdmin webmaster@PROJECT_NAME.com DocumentRoot /var/www/PROJECT_NAME/public/ ServerName PROJECT_DOMAIN <Directory /> Options FollowSymLinks AllowOverride All </Directory> <Directory /var/www/PROJECT_NAME/public/> Options Indexes FollowSymLinks MultiViews AllowOverride All Require all granted Allow from all </Directory> #ErrorDocument 404 / ErrorLog ${APACHE_LOG_DIR}/PROJECT_NAME_error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/PROJECT_NAME_access.log combined </VirtualHost> <IfModule … Continue reading Apache 2.4 Laravel Server Configuration

Creating a Laravel 5 Project on Ubuntu 14.04 with Apache 2.4

Published on

Clone the project. composer create-project laravel/laravel PROJECT_NAME –prefer-dist or laravel new PROJECT_NAME For instructions on how to install composer see Installing Composer on Ubuntu. If you get a message that mcrypt is not installed you will need to install it. sudo apt-get install php5-mcrypt To boot up a quick server page you can use PHP’s … Continue reading Creating a Laravel 5 Project on Ubuntu 14.04 with Apache 2.4