Tag Archives: route

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 »

Laravel: Datatable

Assalamualaikum / Hi, Today I will share how to use Datatables in your Laravel project. I will cover on: Setting up Datatables Compiling Datatables Asset with Laravel Mix Create route for Datatables Create reusable Blade Template for Datatable Part 1: Installation Create a new laravel project. Install package.json dependencies with npm install or yarn install.… Read More »

Laravel: Route Macro

Here I want to show, how to extend existing route – get, post, etc. for your application. I’m going to create a new route Route::setting(‘module’), which will create all necessary route setup. Now register this new macro in your AppServiceProvider, in register() method. Then, you can start use the new route. To use this new… Read More »

4 Essential Laravel Packages for Your Web Application Development

Assalamualaikum, Recently I’ve been working with developing Laravel packages for my own use and Laravel’s community. It’s quite fun and interesting how you can separate the modules or features from Laravel’s main application and make it as a package, which later on you can reuse it over and over again. Here are some of the… Read More »

Laravel: Artisan Extended – make:route

Assalamualaikum, Yesterday, I’ve shared ideas on how to manage your Laravel’s route in Laravel: Managing Routes post. Today, I want to share with you guys how to create easily the resourceful route, with or without prefix (yes, you can make route version too!). First thing first, let’s create a new Laravel project and require the… Read More »