vendredi 24 mai 2019

Passing Stored Procedure result to Laravel API Resource

I wanted to pass the result of the executed stored procedure to my PB.vue

the problem is, it's giving me an error saying:

"Call to a member function first() on array"

public function index()
{
    $pbs = DB::select('EXECUTE [dbo].[spQueryContainer]');

    return PBResource::collection($pbs); 
}



from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2whh1fJ
via IFTTT

Aucun commentaire:

Enregistrer un commentaire