Slim 3 Eloquent 5 call stored procedures mssql


#1

Hi
I have connected to MSSQL
Please help me to call stored procedure.
This is my code.

$capsule = new \Illuminate\Database\Capsule\Manager;
$capsule->addConnection($container[‘settings’][‘db’]);
//Connection database for Reports
$capsule->addConnection($container[‘settings’][‘dbReports’], ‘db_Reports’);
$capsule->setAsGlobal();
$capsule->bootEloquent();

$container[‘db’] = function ($container) use ($capsule) {
** return $capsule;**
};

namespace App\Models\Reports;
use Illuminate\Database\Eloquent\Model;
class CallStoredProcedures extends Model {

public static function UnsubscribedUsers() {
return static::select(“CALL NewUnsubscribed()”);
}

Receive this error:
Fatal error: Class ‘Doctrine\Common\Inflector\Inflector’ not found in
/var/www/html/vendor/illuminate/support/Pluralizer.php on line 66

thanks in advance


#2

Run composer install / update


#3

Thank you
Slim is updated from 3.8.1 to 3.9
And problem is solved