I tried to get the data on database using stored procedure - can I use the eloquent?
This is my Eloquent
TriedHard.php:
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class TriedHard extends Model
{
//
protected $connection = 'sqlsrv2';
}
and I try to call this eloquent on my query like this so I can use a stored procedure.
Controller.php:
$dataprogram = TriedHard::select('sp_MstShow_CrewProgram_Select');
dump(collect($dataprogram);
but nothing happened, also I can't get my data, how can I solve that?