optimized add form for store products
This commit is contained in:
@@ -22,8 +22,16 @@ class TeamStoreModel extends Model {
|
||||
->orderBy('Ordering', 'ASC')->get();
|
||||
return $i;
|
||||
}
|
||||
|
||||
function selectTeamStoreProductByIdHash($id)
|
||||
{
|
||||
$i = DB::table('teamstore_products')
|
||||
->where(DB::raw('md5(Id)') , $id)
|
||||
->get();
|
||||
return $i;
|
||||
}
|
||||
|
||||
function selectTeamStore($field, $teamstoreURL) // display all data from database
|
||||
function selectTeamStore($field, $teamstoreURL)
|
||||
{
|
||||
$i = DB::table('teamstores')
|
||||
->where($field, $teamstoreURL)
|
||||
|
||||
Reference in New Issue
Block a user