Skip to content

Api first backend boilerplate build with laravel ๐ŸŽฏ you can use as a template ๐Ÿ˜‰

Notifications You must be signed in to change notification settings

HijenHEK/laravel-backend-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

96 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Laravel Backend Template

i use this as a starting point for my backend projects , it saves time with basic auth functionalities and has code examples for repetitive blocks

What is it about ?

this is an API First Backend developed using laravel mysql and sacntum for authentification
A front end agnostic ready to use boilerplate for your next Mobile app or SPA

Features and Todo's

  • authentication system
  • profile fetch and update data
  • reset passwords
  • email verification
  • user roles
  • user crud for admins
  • public upload example (profile picture)
  • local upload example : private attachment
  • MFA
  • social login

Admin provider Todo

  • seperate admin provider (under feature/admin-provider)
  • authentication system
  • admin profile
  • clean main roles system

you can add suggestions by modifying this file :)

Installation

Docker ?

if you have docker installed , all you have to do is running

$ git clone https://github.com/hijenhek/laravel-backend-boilerplate 
$ cd laravel-backend-boilerplate 
$ composer install
$ ./vendor/bin/sail/up

and the app will be accessible by default via localhost as programmed in docker-compose.yml

locally ?

you need to have

composer
php ^8.0
mysql

then run these commands

$ git clone https://github.com/hijenhek/laravel-backend-boilerplate 
$ cd laravel-backend-boilerplate 
$ composer install
$ cp .env.example .env // set up database credentials ...
$ php artisan key:generate
$ php artisan migrate --seed
$ php artisan serve

and the app will be accessible by default via localhost:8000

Testing

$ php artisan test

Api Documentaion ?

/insomnia

About

Api first backend boilerplate build with laravel ๐ŸŽฏ you can use as a template ๐Ÿ˜‰

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages