Skip to content

nosoka/laravel-api-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Api Starter

Re-usable laravel dropin package for following api authentication methods.

  • api/auth/register
  • api/auth/verify.email
  • api/auth/send.verification.email
  • api/auth/login
  • api/auth/forgot.password
  • api/auth/reset.password
  • compatible with laravel version 7.x/8.x

Installation

  • Add following to composer.json in your existing laravel project

    "repositories": [
        {
            "type": "path",
            "url": "./api"
        }
    ],
    
  • Clone the repo into a subfolder in your existing laravel project

    $ git clone git@github.com:nosoka/laravel-api-starter.git api
    
  • Install the package

    $ composer require nosoka/api
    
  • Publish config files.

    $ php artisan vendor:publish --provider="Dingo\Api\Provider\LaravelServiceProvider"
    $ php artisan vendor:publish --provider="Tymon\JWTAuth\Providers\LaravelServiceProvider"
    

Tests

  • create/change .env.testing (from .env)
  • run codeception tests
    $ ./vendor/bin/codecept -c api build
    $ ./vendor/bin/codecept -c api run
    

About

example/re-usable laravel dropin for api authentication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages