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