Create role and permission (Using Entrust) in Laravel

Long time not write blog again, and now I want share how to add permission user using entrust. Okay for the installation, follow the steps below:
First open your laravel project and add this code to your composer:

"require": {
		"laravel/framework": "4.*",
		"barryvdh/laravel-debugbar": "dev-master",
		"zizaco/entrust": "dev-master"

After that, run composer update:

$ composer update

If update succesfully, now open your app.php from your laravel config:


Laravel 4 create PDF (use dompdf)

After not updating this blog for a few days, now I want to share how to create PDF in laravel using dompdf package from Ok for installation follow this steps:
First we must add the barryvdh/laravel-dompdf to the composer with command:

aim@linux-yr22:~$ composer require barryvdh/laravel-dompdf:* --no-update
aim@linux-yr22:~$ composer update

Then we must add service provider to app/config/app.php:

	'providers' => array(


Then add Facade for shorter code. What facade? I will explain later in below paragraph.

Create One Blade Template (Layout) for All page in Laravel 4

Okay for long time, I will update the blog content and now I want to share how to create one base template or one layout for all page in my laravel framework. The structure might look like this:

And now the first we must change the head.blade.php like this (I using bootstrap):

<title>Simple Project</title>
<meta charset="utf-8">
<meta name="description" content="Simpel Project">
<meta name="Imron Rosdiana" content="Simple Project">

<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="//">
<!-- Optional theme -->
<link rel="stylesheet" href="//">

<!-- Jquery -->
<script src="//" type="text/javascript"></script>


Adding Laravel Debugbar like Symfony2 debugbar.

Hello I’am back again for long time.. :D, sory for long time and wait your time to see my new post. I’am sory, now I’ve some problem with my homework and now I’m working on my thesis. I hope you understand this. I’am is only one administrator on this blog and I was a student in one of the colleges, so I’ve many homeworks 🙂 So if you want to help me and join in with being the author of this blog, then please email me at
Okay back to the topic, we now Symfony2 from default have profiler or panel debugbar on the bottom page if we run on development site like this:
And now laravel have plugin similiar symfony2, I got it from here And this how to install the debugbar on Laravel:
The first open your composer.json on your laravel, example composer.json me:

Bootstrap 3.1 load tab content using ajax (external view) on laravel 4.1

Ok now I want create a tutorial about how to load external view using ajax on laravel. Okay we just started the tutorial. 🙂
The first, I assume You have to install the laravel framework. If not, You can follow from this link, after that, now I assume you have download Bootstrap from twitter and latest jquery from this site. and this Ok after all has been downloaded, now open your laravel framework on your editor text.
Okay the first paste all jquery and bootstrap to public/assets like this:

And then, create file on your app/views with name home.php and fill the code like this: