PHP code example of 3ie / laravel-storedprocedures

1. Go to this page and download the library: Download 3ie/laravel-storedprocedures 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/ */

    

3ie / laravel-storedprocedures example snippets


'providers' => array(
    'Mrblackus\LaravelStoredprocedures\LaravelStoredproceduresServiceProvider'
);

return array(
    'schema'         	=> 'public',
    'model_save_dir' 	=> 'stored_procedures/',
	'model_namespace'   => 'App'
);

$userId = 20;
$friends = SP_Getfriends::execute($userId);

$firstFriend = $friends[0];
$friend->getId();
$friend->getUsername();
$friend->getFacebookid();

php artisan bundle:install StoredProcedure

php artisan generate-sp

php artisan vendor:publish