My simple project of bank app made that use CRUD in Laravel for completing university course.
- Users system
- Verification link on e-mail to activate an account
- 3 roles in the system (Client, Support, Admin)
- Transactions system
- List of transaction of logged in user
- CRUD to manage users as an admin
- Light/Dark mode based on a system theme
- PHP 8.2+
- Composer
- Node.js 20.11+
- npm
- Clone repo
- Set up the new configuration file
cp .env.example .env
- Update and uncomment database values in new created .env file
- Install all PHP dependencies via composer
composer install
- Run migrations
php artisan migrate
- Create new encryption key
php artisan key:generate
php artisan config:cache
- Install all Node.js dependencies via npm
npm install
- Create manifest.json file
npm run build
- Serve website
php artisan serve
- Register normal account by register form on site
- Open tinker (console programming environment)
php artisan tinker
- Assign role "admin" to newly created user
use App\Models\User;
use Spatie\Permission\Models\Role;
$user = User::find(1); # or any other ID (change 1 in that case)
$user->assignRole('admin');
exit();