“Laravel Github” Code-Antworten

Laravel -Installation von Github

//Laravel installation from github
php -r "file_exists('.env') || copy('.env.example', '.env');"
composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
php artisan key:generate
25 din me paisa double

Laravel Github

Setting up the environment
clone the git

composer update --no-scripts

cp .env.example .env

php artisan key:generate

Create db and change the credential inside the env file[DB name, Username, password]

Before doing the migrate check if the AppServiceProvider is config for the 191 string length add the following line in the top of the AppServiceProvider.php file

use Illuminate\Support\Facades\Schema;

Then add the following schema inside the boot function

  schema::defaultStringLength(191);
This will prevent from database error when migrated as the length will be 1024 and the mysql db gives default length 1000
7. php artisan migrate 8. php artisan migrate:refresh --seed (It will create a new user dummy one in the system automatically, admin, [email protected], secret plus all the needed seed for the catagory)
Said HR

Ähnliche Antworten wie “Laravel Github”

Fragen ähnlich wie “Laravel Github”

Weitere verwandte Antworten zu “Laravel Github” auf Shell/Bash

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen