Skip to content

Instantly share code, notes, and snippets.

@connor11528
Created July 11, 2017 21:09
Show Gist options
  • Star 33 You must be signed in to star a gist
  • Fork 19 You must be signed in to fork a gist
  • Save connor11528/fcfbdb63bc9633a54f40f0a66e3d3f2e to your computer and use it in GitHub Desktop.
Save connor11528/fcfbdb63bc9633a54f40f0a66e3d3f2e to your computer and use it in GitHub Desktop.
Create a new Laravel application
#!/bin/bash
laravel new $1
cd $1
composer install
yarn install
touch README.md
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
@connor11528
Copy link
Author

Create a MySQL database locally:

$ mysql -uroot -p 
$ create database YOUR_DATABASE_NAME;

Update the .env file:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=YOUR_DATABASE_NAME
DB_USERNAME=YOUR_USERNAME_HERE
DB_PASSWORD=YOUR_PASSWORD_HERE

@nifftyniche
Copy link

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.
QueryException
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,
tpbradford07@gmail.com

@highman95
Copy link

2 Things to do;

  • Cross-check your DB connections to ensure your app is pointing to the correct database
  • Ensure that the table or view is indicated as "not found" actually does exist. If not, create it.

This should be all you need to proceed.

@JoDeveloper
Copy link

JoDeveloper commented Oct 24, 2019

3 Things to do;

use pygithub to automatically create repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment