This project is a simple website which use laravel elements to make a user system. It covers some different things :
- Authentication
- Registration
- Logout
- Gates
- Template separation
- Administration (to use roles and access restrictions)
- PHP 7.2.5 or more;
- more on laravel documentation.
Get the project from github:
$ git clone https://github.com/aloyonnet/laravel-auth.git
Install the dependencies:
$ composer install
link your app to a database:
create a copy of .env.example rename it .env and open it
/.env
$ DB_CONNECTION=...
$ DB_HOST=.........
$ DB_PORT=.........
$ DB_DATABASE=.....
$ DB_USERNAME=.....
$ DB_PASSWORD=.....
create the content of the database:
$ php artisan make:migration
$ php artisan migrate
for non production use, you can launch a server (with https://localhost:8000 by default) using :
$ cd my_project
$ php artisan serve
if you try on remote and the command don't work use :
$ cd my_project
$ php artisan serve --host [your_ip_here]
If laravel binary is not installed, you can replace the command with:
php -S localhost:8000
Data fixtures :
$ php artisan db:seed