updated for designer
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use DB;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class TemplatesModel extends Model {
|
||||
|
||||
@@ -57,4 +57,11 @@ class TemplatesModel extends Model {
|
||||
return $i;
|
||||
}
|
||||
|
||||
|
||||
function selectAllTemplate(){
|
||||
$i = DB::table('templates')
|
||||
->where('IsActive', '=', 'TRUE')
|
||||
->get();
|
||||
return $i;
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ class TeamStoreModel extends Model {
|
||||
{
|
||||
$i = DB::table('teamstore_products')
|
||||
->where($field, $teamstoreId)
|
||||
->orderBy('Ordering', 'ASC')
|
||||
// ->orderBy('Ordering', 'ASC')
|
||||
->orderBy('Ordering', 'ASC')->get();
|
||||
return $i;
|
||||
}
|
||||
@@ -224,7 +224,17 @@ class TeamStoreModel extends Model {
|
||||
$i = DB::table('teamstores')
|
||||
->where("IsActive", "true")
|
||||
->orderby($field, $value)
|
||||
->paginate(16);
|
||||
->paginate(12);
|
||||
return $i;
|
||||
}
|
||||
|
||||
|
||||
function selectFeaturedProduct(){
|
||||
|
||||
$i = DB::table('teamstore_products')
|
||||
->where("IsActive", "true")
|
||||
// ->orderby($field, $value)
|
||||
->paginate(12);
|
||||
return $i;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user