PHP code example of stormpath / laravel

1. Go to this page and download the library: Download stormpath/laravel library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

stormpath / laravel example snippets


  STORMPATH_CLIENT_APIKEY_ID=<YOUR-ID-HERE>
  STORMPATH_CLIENT_APIKEY_SECRET=<YOUR-SECRET-HERE>
  

  STORMPATH_APPLICATION_HREF=<YOUR-STORMPATH-APP-HREF>
  

  Stormpath\Laravel\Support\StormpathLaravelServiceProvider::class
  

  Route::get('/page', ['middleware'=>'stormpath.auth']);
  

    Route::get('/page', ['middleware'=>'stormpath.guest']);
  
bash
  $ php artisan vendor:publish