mardi 30 octobre 2018

Where should i write raw-query or query using query builder instead of writing it in route file in laravel?

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class testing extends Model
{

}

should i write my all queries in this model class,even if i just want to use query builder no eloquent?

what are the good practices to write raw query or using query builder?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2OYRMun
via IFTTT

Aucun commentaire:

Enregistrer un commentaire