optimized add form for store products

This commit is contained in:
franknstayn
2019-11-13 22:45:51 +08:00
parent 84f84f6288
commit 0363474def
14 changed files with 448 additions and 873 deletions

View File

@@ -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)