March 2017 - BOOKC -->

BOOKC: March 2017

How to exit from php artisan tinker
Sunday, March 26, 2017

How to exit from php artisan tinker

Some people having difficulty closing/exit from artisan tinker mode, this is also happened to me when i use artisan tinker for the first tim...
Interact with your application using artisan tinker

Interact with your application using artisan tinker

Another cool feature in laravel is the ability to interact with your application via artisan tinker, using artisan tinker you can execute ph...
How to check Eloquent get() and first() query result

How to check Eloquent get() and first() query result

Every time you run query to the database whether using eloquent get() or first() method, it's always a good idea to check the result of ...
How to create table seeder in Laravel 4.2
Saturday, March 25, 2017

How to create table seeder in Laravel 4.2

Seeding is the technique of filling our database with sample data so we can test and create our applications. It really does make building a...
Echoing data with default value in Laravel blade

Echoing data with default value in Laravel blade

When echoing data in laravel blade template using double or triple curly braces, you don't need to worry if the value is empty, it will ...
What is forelse loops in Laravel blade?

What is forelse loops in Laravel blade?

Besides 'foreach' loops, we also got 'forelse' loops in laravel blade template, what exactly this 'forelse' loops do...
Looping in Laravel blade template

Looping in Laravel blade template

Just like the 'if' statement, blade also has it's own way of doing loops/looping, you can do 'for' loops, 'foreach&#...
If statement in Laravel blade template

If statement in Laravel blade template

Blade template have it's own way of doing conditional 'if' statement, the syntax is little bit different from the regular php &#...
How to escape output in Laravel blade

How to escape output in Laravel blade

When you use the blade template in laravel, specially laravel version 4, if you use the double curly braces to output something, then you ar...
How to create resource controller in Laravel 4.2

How to create resource controller in Laravel 4.2

Laravel 4.2 have predefined resource controller that you can use to start develop CRUD (Create, Read, Update, Delete) based application quic...
How to pass variable to Laravel view
Friday, March 24, 2017

How to pass variable to Laravel view

Passing parameter/variable to the view in laravel is something easy to do, in this article i will show you how to pass parameter/variable to...
How to pass parameter to Laravel route

How to pass parameter to Laravel route

In laravel you can pass parameter into the route, the parameter can be pass down to the controller or even the view, you can also add constr...
How to create named route in Laravel

How to create named route in Laravel

Another cool feature on laravel is route alias or naming route , using named route you can specify a name for your route, so it is easier f...
How to show list of routes in Laravel

How to show list of routes in Laravel

When your laravel application gets bigger, you will end-up having a lot of routes, and it's difficult to maintain, the ability to show l...
Choosing the best text editor for Laravel

Choosing the best text editor for Laravel

There are many choices when it comes to text editor for developing laravel application (or php in general), some people might prefer phpstor...
Changes from Laravel 4 to Laravel 5
Wednesday, March 22, 2017

Changes from Laravel 4 to Laravel 5

Laravel 5 started life as Laravel 4.3, but was promoted to its own major version when it became apparent that this new version was going to ...
How to change be right back message on Laravel

How to change be right back message on Laravel

When your application is on maintenance mode, it will display 'be right back' message, what if you want to change this message? how ...
How to put Laravel in maintenance mode

How to put Laravel in maintenance mode

Did you know that you can put laravel on maintenance mode? this is another cool feature on laravel, you can put your application in maintena...
Laravel 5.2 directory structure

Laravel 5.2 directory structure

Laravel 5 have completely different directory structure than laravel 4, so if you want to switch your application to laravel 5, you can star...
How to get table prefix in Laravel 4.2

How to get table prefix in Laravel 4.2

On your database configuration (app/config/database.php), you can specify a prefix for every table that you use on your database, the questi...