Skip to content

kemalyen/Easy-Peasy-Customer-Portal-api-backend

Repository files navigation

Easy Peasy Portal Backend API

This demo project includes a quickstart using Sanctum Authentication for SPA and Eloquent Resources.

Installation

First clone the reporsitory

Run composer to install PHP dependencies:

composer install

Don't forget to update environment!

I prefer to use sqlite, easy and basic. This will also create

So update environment file to use with sqlite:

DB_CONNECTION=sqlite 

and now Laravel will create a sample database and create the structure for us.

php artisan migrate

Now let's put some sample data

php artisan db:seed

And now start the built in server

php artisan serve

Our website must be running on localhost and Vite will serve the frontend codes on localhost:5173.

Username: [email protected] Password: password

Sample .env

FRONTEND_URL=http://localhost:5173

SANCTUM_STATEFUL_DOMAINS=localhost:5173
SESSION_DOMAIN=localhost

License

The Laravel framework is open-sourced software licensed under the MIT license.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages