₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,327,342 members, 8,430,497 topics. Date: Saturday, 20 June 2026 at 02:58 PM

Toggle theme

Codeigniter 4 Is Exactly Like Laravel - Webmasters - Nairaland

Nairaland ForumScience/TechnologyWebmastersCodeigniter 4 Is Exactly Like Laravel (373 Views)

1 Reply

Codeigniter 4 Is Exactly Like Laravel by Ayemileto(op): 10:52pm On Jul 10, 2020
So, I just completed my first project using CI4, and i can tell you it now looks like Laravel.

Here are some Similar things:

1. Command Line Server: Codeigniter now have a command line server that can be launched with "php spark serve". This is similar to Laravel's "php artisan serve" command.

2. Database Migrations: Codeigniter now have a database migration method that can be use from the command prompt or terminal window. and It is very similar to Laravel's.

3. The Model: in the new CI4 framework, you get to write extremely fewer lines of code in your model. You now have to declare your primary key, fillable fields and many other things . there are now pre developed method for performing lots of database actions, making it very similar to other popular frameworks.

4. Use of namespaces/env file: Yeah, like Laravel, Codeigniter now have an env file. and namespaces are now used.

5. Use of Composer to manage Dependencies: Yes, the framework now uses composer to manage dependencies. i think you can choose not to use it though.

There are many other improvements in the framework in general, like the overall rearrangement of files and folder, using of return or echo to fetch a view, improved error reporting page and lots more.

In short, it is now in the league of many other top web development frameworks and I will urge web developers in the house to check it out!!!
Re: Codeigniter 4 Is Exactly Like Laravel by stanliwise(m): 11:01pm On Jul 10, 2020
Ayemileto:
So, I just completed my first project using CI4, and i can tell you it now looks like Laravel.

Here are some Similar things:

1. Command Line Server: Codeigniter now have a command line server that can be launched with "php spark serve". This is similar to Laravel's "php artisan serve" command.

2. Database Migrations: Codeigniter now have a database migration method that can be use from the command prompt or terminal window. and It is very similar to Laravel's.

3. The Model: in the new CI4 framework, you get to write extremely fewer lines of code in your model. You now have to declare your primary key, fillable fields and many other things . there are now pre developed method for performing lots of database actions, making it very similar to other popular frameworks.

4. Use of namespaces/env file: Yeah, like Laravel, Codeigniter now have an env file. and namespaces are now used.

5. Use of Composer to manage Dependencies: Yes, the framework now uses composer to manage dependencies. i think you can choose not to use it though.

There are many other improvements in the framework in general, like the overall rearrangement of files and folder, using of return or echo to fetch a view, improved error reporting page and lots more.

In short, it is now in the league of many other top web development frameworks and I will urge web developers in the house to check it out!!!
Nice one o. Used it before, wasn’t so sleek as laravel but I guess it would be a different story now. But I guess laravel has stolen the show already
Re: Codeigniter 4 Is Exactly Like Laravel by Ayemileto(op): 11:40pm On Jul 10, 2020
stanliwise:
Nice one o. Used it before, wasn’t so sleek as laravel but I guess it would be a different story now. But I guess laravel has stolen the show already
Yes bro.

Even me was surprised at the improvements. But laravel still top.
1 Reply

Build A Tech Startup That Works Exactly Like TwitterI Need A Site That Function Exactly Like Refer.ng With A Little TweakSee This Website That Looks Exactly Like Nairaland234

Please Help! I Am Unable To Renew My Hosting With BluehostI Need A Wordpress ExpertHelp!!!!!