Build a powerful Laravel 5 app with Grafite

Connor Leech
Jun 6, 2018 · 2 min read
Image for post
Image for post
Taken directly from the Grafite website

Taken directly from the Grafite Builder getting started documentation.

$ laravel new grafite-crud
$ composer require "grafite/builder"
$ php artisan vendor:publish
> press 0 for everything
$ php artisan grafite:starter
$ php artisan grafite:bootstrap
> yes overwrite files

There are some additional configuration steps to follow here.

Image for post
Image for post
The above grafite:bootstrap command automatically generates a User Interface with Bootstrap 4.0.

Don’t forget to run:

$ composer dump


$ php artisan migrate --seed

This will create an admin user with appropriate permissions. The credentials by default are / admin.

Image for post
Image for post
The Grafite CLI provides detailed instructions about files to change to make your app work.

Copy over a new environment file, set your application key, create your database and change MAIL_DRIVER=log to test emails locally. By default the Grafite starter command automatically generates an admin user and the infrastructure so that users need to click a link in a confirmation email to be valid.

Image for post
Image for post

It can also be helpful to install laravel-log-viewer for quickly navigating to the log file (where user confirmation emails will be stored).

To generate a new table and CRUD actions we can use the Grafite CRUD Maker.

php artisan crudmaker:new Todo

🚀 If you’re a candidate on the job market or startup looking to hire in the Bay Area, feel free to create a profile on Employbl 🤝


Find a tech or startup job in the Bay Area.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store