This Laravel project is a prototoype Content Management System (CMS) for a made up restaurant.
You first need to create a user for the MySQL database.
Open up CMD and sign in to MySQL as the root account
mysql -u root -p
Create a user and password to be used, the default username is admin
and the default password is password
To change it, change the .env
file, search for the lines that say DB_USERNAME=admin
and DB_PASSWORD=password
CREATE USER 'admin'@'localhost' IDENTIFIED BY 'password';
Grant Privileges to the new account
GRANT ALL PRIVILEGES ON * . * TO 'admin'@'localhost';
FLUSH PRIVILEGES;
Exit MySQL
exit;
The default database for this project is amaterasu
and can be changed in the env
at the lib DB_DATABASE=amaterasu
Sign in to the MySQL user you're using
mysql -u admin -p
Input password
password
Create the database
CREATE DATABASE amaterasu;
In cmd
navigate to the project folder that contains the file artisan
cd Amaterasu
Commit the migrations to the database
php artisan migrate:refresh --seed
Make a symbolic link in the "Amaterasu/public" folder linking to "Amaterasu\storage\app\public" This is required since any newly added images are added in storage, and this allows them to be accessed as assets
php artisan storage:link
php artisan serve