YH
Size: a a a
YH
MD
D
if (empty($_GET['order']) && empty($_GET['field']))
$products = Product::paginate(50);
D
D
YH
P
D
public function indexByCategory($id_category) {route model bindign нужен
$category = Category::find($id_category);
D
P
AS
VY
Gt
Gt
D
$now = Carbon::now();
$product = Product::create(array_merge(['created_on' => $now], $request->input()));
D
D
AS
D
P