Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Create a new Laravel application
laravel new $1
cd $1
composer install
yarn install
cp .env.example .env
git init
git add -A
git commit -m 'Initial commit'
php artisan key:generate
php artisan config:clear
php artisan config:cache

This comment has been minimized.

Copy link
Owner Author

connor11528 commented Jul 11, 2017

Save this file where you store your projects. Then run chmod command to make sure you have permissions to run it

chmod 700 

Then you can create Laravel apps with the command below. Substitute APP_NAME for the title of your brand spankin new Laravel project


To add a sqlite database for rapid development run touch database/database.sqlite

For getting set up with MySQL check out: Build an online forum with Laravel — Initial Setup and Seeding (Part 1)


This comment has been minimized.

Copy link
Owner Author

connor11528 commented Sep 4, 2018

Create a MySQL database locally:

$ mysql -uroot -p 
$ create database YOUR_DATABASE_NAME;

Update the .env file:


This comment has been minimized.

Copy link

nifftyniche commented Jan 22, 2019

hello does anyone know what I need to do to get my catagory deleted everytime i try and delete it it takes me to a page that says... Whoops, looks like something went wrong.
SQLSTATE[42S02]: Base table or view not found:
with a red page listing a bunch of errors. I just dont have that much knowledge to know what I should do to fix it,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.