Start Here
Larafast API Boilerplate Documentation
Welcome to the Larafast API Boilerplate Documentation
Larafast API Boilerplate uses Laravel Framework v11.x, FilamentPHP, and Laravel Sanctum for authentication.
Haven’t gotten Larafast API Boilerplate yet? Check here: https://larafast.com/projects/larafast-rest-api
Postman documentation is available at https://documenter.getpostman.com/view/739183/2sA3QnhE57
Installation
To install the project you need to open your terminal and type these commands
If you have installed the project using the Larafast Installer, you can skip this steps.
Clone repo and install composer
Create .env file
Create APP_KEY just run:
Run migrations
By default DB_CONNECTION is set to SQLite, feel free to change it to MySQL or any preferred DB.
To use MySQL as a database, update the .env file with the new database credentials.
By default, the project comes with pre-defined roles. If you want to modify them, update the database/seeders/RoleSeeder.php
file.
Run the migrations and seed the database with the following command:
Run Local Server
Laravel comes with a handy artisan serve command to run a local server. Feel free to use Valet or any other local server management tools.
That’s it. Visit http://127.0.0.1:8000/ and see your API!
Don’t forget to remove the starter kit’s git configs. To do so: rm -rf .git
- to init fresh git folder later git remote remove origin