INSERT into archive (title_product, title_category, price_product)
SELECT p.title, c.title, p.price
from product p
join category c on p.category_id = c.id
Warning
This function was DEPRECATED in PHP 5.3.0, and REMOVED in PHP 7.0.0.
Alternatives to this function include:
preg_split()
explode()
str_split()
public function update(Request $request, Crud $crud){
$crud->update([
'name' => $request->get('name'),
'email' => $request->get('email')
]);
return redirect('/')->with('update', 'Вы успешно Изменили Данные');
}