/ voyager

Voyager Installer made easy

Over the past few weeks I have created quite a few projects using the Laravel & Voyager combo and I have started to find out that there are a couple of things that could be optimised to make my life(and others too) a whole load better. I spent a couple of hours fiddling around with composer and getting the hang of things. In this time:


was born!
Visit the github page here

It is not anything ground-breaking or any kind of rocket science. I was just fed up of having to go through a series of steps every time I had to create a new project, and I envied so much the Laravel installer. I just wished there was something similar for Voyager.

As the name of the composer package implies, it does just that. A simple command line that allows you to setup a Voyager Laravel Project with minimal effort.

How to go about it?

Firstly, install it.

composer global require bugzbrown/voyager-installer

Then all you have to do is treat it like you would any other Laravel installation.
You go to where you want you project setup and run:

voyager-installer new project-name

It will do it's bit of magic and spit out a minimal set of instructions.

Straight out of my README, here is the quick overview of the installation and usage:

Quick install overview

Step 1 - Create a new project

composer require global bugzbrown/voyager-installer
voyager-installer new project-name

Step 2 - Database and .Env

Create a database for use with your project and edit your .env file in the root of your project folder.

Step 3 - Install Voyager

from the root of your project directory

php artisan voyager:install

to install a default blank voyager project or

php artisan voyager:install --with-dummy

to install some sample data in your voyager instalation.

Step 4 - Create and Admin User

If you are using a blank install (like you most usually will), run this interactive command to create a user for your administration area. (repalce email@email.com with your desired email)

php artisan voyager:admin email@email.com --create

Just answer the questions the interactive shell asks you and you're all setup.

If you installed dummy data, the user is admin@admin.com and the password is password

Your login url is "http://yoursite/admin"

Gregory Brown

Gregory Brown

Baker, cake designer, cook and just by chance, a full featured developer that is passionate about technology.

Read More