Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Junedadenwalla's avatar

Can we write normal PHP code for CRUD operation in Laravel

Can we write normal PHP code for CRUD operation in Laravel, I am learning Laravel & just wanted to ask can we write normal vanilla PHP code in laravel

0 likes
6 replies
Snapey's avatar

Its all PHP

If you are learning Laravel, learn how to use the framework, not how to work around it

1 like
Abbeville13's avatar

Sure, you can. But, it is advisable to follow the laravel convention. I believe that is why you decided to use a framework

1 like
furqanDev's avatar

It is PHP and you can write your own CRUD operation. But It's a framework so you should stick to its method. If you want to use RAW mysql Queries then you can do it as well if you don't want to use Laravel Eloquent Model.

Please or to participate in this conversation.