Level 6
get from table like
$user_id = Auth::id();
and
$type_id =Type::where('id','$request->id');
or
$type_id = '1' ;
and then edit and update it ;)
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have a csv file like this
name type
but on my project the 'type' is a foreing key 'type_id', how can I proprely import the data?
Please or to participate in this conversation.