CodeIgniter 4 Route Group Tutorial - Online Web Tutor
Create Controller & Route Group. Open project into terminal and run this command. $ php spark make:controller Device --suffix. This command will create a file called DeviceController.php at location /app/Controllers folder. Let's add few lines of code into it.