Laravel: Write Class Generator Command

Assalamualaikum, In this post, I will share with you how you can create your own class generator – like php artisan make:model …. So here the trick, in order to create your own class generator command, you can extend the use IlluminateConsoleGeneratorCommand. For instance, you want to create make:service. First, create new artisan command by… Read More »

Laravel: Adaptive Attendance

Assalamualaikum, Recently I’ve attended a local event on launching IT products called JomLaunch. But I’m not gonna go details about it – however you can checkout projects submitted in their website and other projects not presented but worthy to mention – I did submit project (Open Payroll). To keep long story short, I met Akif… Read More »

Laravel: Creating Your Own Helpers

Assalamualaikum / Hi, Helpers in Laravel, help you a lot in day-to-day coding with Laravel. But, what if you want to create your helper? and of course, you want to organise it as well. Usually I have my own helpers – see my helpers in Laravel Boilerplate. But before doing that, you need to add… Read More »

Laravel: Organising Your Route Files

Assalamualaikum / Hi, Have you ever having hundred or probably thousand line of codes in a single routes/web.php ? So, my solution is quite simple. First thing, let’s look at this code snippet: So, it’s quite straightforward - the code above will simply require all files in the routes/web directory. Means that, you can have infinite number of… Read More »