Skip to content

Simple example about how to use Laravel and customize the authentication workflow

Notifications You must be signed in to change notification settings

fpauer/PHP-Laravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

PHP with Laravel

This project is a simple example about how to use Laravel with a different approach in the authentication workflow.

Preconditions

  1. Install LAMP stack

  2. Install Lavarel

  3. Install phpunit

  4. Run the command: sudo nano /etc/apache2/mods-enabled/dir.conf

    Include index.php to the list Save the file

  5. Download the folder [public_news]

Creating and initialing the database

Restore the database backup

  1. Login in the MySQl, run the command: mysql -u root -p[password]

  2. Create the database, run the command: create database public_news; exit;

  3. Restore the database: run the command: mysql -u root -p[password] public_news < [Your Folder]/Source/backup.sql

  4. Login in the MySQl, run the command: mysql -u root -p[password]

  5. run the command: CREATE USER 'user_connection'@'localhost' IDENTIFIED BY '$eguro01';

  6. run the command: GRANT ALL ON public_news.* TO 'user_connection'@'localhost';

Preparing the source code

  1. run the command: cd /var/www/html

  2. copy [Your Folder]/Source/public_news to /var/www/html

  3. Run the commands: cd /var/www/html/public_news php artisan serve

  4. Open the application http://localhost:port/

About

Simple example about how to use Laravel and customize the authentication workflow

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published