Hi, You could do this as:
public function store(Request $request)
{
YourModel::create($request->all());
}
And if you need Crud Generator then you can try https://github.com/appzcoder/crud-generator It's really so simple :)
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello, I am starting to make a project where I can create, read, edit and delete data from database. And I know that there's a lot of crud generator in github but I am confused and I want to make my own so that I can practice it. Is there anything changes in laravel 5.2? This is the command I know on how to store data..
public function store(Request $request)
{
$data=[
'username'=>Input::get('username'),
'name'=>Input::get('name'),
'usertype'=>Input::get('usertype'),
'password'=>Hash::make('password'),
];
Model::create($data);
}
Thanks
Please or to participate in this conversation.