added hibernate
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
namespace App\Models\admin;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use DB;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class AdminModel extends Model
|
||||
{
|
||||
@@ -490,4 +490,10 @@ class AdminModel extends Model
|
||||
return $i;
|
||||
}
|
||||
|
||||
function selectTax(){
|
||||
$i = DB::select("SELECT t.Id, t.StoreName, tx.DateCreated FROM tax AS tx
|
||||
INNER JOIN teamstores AS t
|
||||
ON t.Id = tx.TeamstoreId");
|
||||
return $i;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user