Hey guys, it's another repository, solved simple task, it's students' system. The main controllers are teachers (we can call them users), they can add students, modify them, bind them to a courses, delete them. They can do almost everything with the poor students, but not students at all. Let's get started!
First you have to just clone the repository to your machine saying:
git clone https://github.com/mrcat323/academy-task
First generate a key:
php artisan key:generate
Set up the database:
cp .env.example .env
And change that DB details to yours, something like DB_HOST, DB_DATABASE, DB_USERNAME, DB_PASSWORD to yours.
Then install all composer & NPM dependencies:
composer install
npm install
Simply compile them (just in case):
npm run dev
You need the database to work with project, and that's why type:
php artisan migrate
After that to simplify your work, not adding data to DB and wasting time, I prepared the seeders for you, just run:
php artisan db:seed --class=AllDataSeeder
If after running that you'll see such error like Class not found or something like that, say:
composer dump-autoload
and then run the seeds again:
php artisan db:seed --class=AllDataSeeder
Simply just run:
php artisan serve
and test that out. Go to Register page, type login details, sign up, just test it. Hope u'll enjoy it 🐈