In place Editing with X-editable & Laravel

X-editable allows you to create editable elements on your page. It can be used with any engine (bootstrap, jquery-ui, jquery only) and includes both popup and inline modes.

Let's have a quick look at implementing this in Laravel apps.

You need to include both the css and js scripts that

Posted on

Ajax in Laravel - User Registration

Here's a quick way to use ajax and create a user registration page. On succesfull validation, the user is created and the page is updated with relevant data - both with static messages and user provided details. Of course, we throw the errors if validation fails.

All, without page refresh.

Posted on

How to Setup Laravel 4 on Shared Hosts

Once, you are done working locally on your application, here's how to move it to shared hosts like JustHost, HostGator or any other shared host...

  1. Place the files of the laravel public folder i.e. css, img, js etc; into public_html folder (don't dump public folder instead dump the

Posted on

Get Specific Columns from Laravel Relationships

We have the following Models - Tables linked to them
1.Company - Table(companies)
2.CoreValues - Table (core_values)

A Company can have one or more CoreValues and the relationship for the same is

class Company extends Eloquent {
    public function corevalues() {
      return $this->hasMany('CoreValue','company_id')
Posted on

Composer Update Memory Size Exhausted Issue

On Composer Update some of you should have experienced the following error

Fatal error: Allowed memory size of 656830692 bytes exhausted (tried to allocate 43876548 bytes) in .....

Though you increase the memory that PHP allocate by editing the memory_limit in php config file, sometimes it doesn’t work.


Posted on