Laravel, Backbone.js + Coffeescript Tutorial Part VIII – Views

Laravel, Backbone.js + Coffeescript Tutorial Part VIII – Views

  Step 1 – Download Twitter Bootstrap Visit http://twitter.github.com/bootstrap/, download the latest version and extract into a folder. Copy all files in ‘css’ folder to ‘lbc/public/css’ folder. Copy all files in ‘img’ folder to ‘lbc/public/img’ folder Create new folder called ‘lib’ under ‘lbc/public/js’ and copy all files in ‘js’ of bootstrap into ‘lib’ folder. Step(…)

More

Laravel, Backbone.js + Coffeescript Tutorial Part VII – REST API

Laravel, Backbone.js + Coffeescript Tutorial Part VII – REST API

In this part we will complete REST API we created in last post with actual business logic. (i.e. to get insert, update  and delete categories). Step 1 – Complete BaseModel Since we’re planning to work with JSON format, it would be better if we can add some helper methods to the BaseModel class we created(…)

More

Laravel, Backbone.js + Coffeescript Tutorial Part VI – REST API

Laravel, Backbone.js + Coffeescript Tutorial Part VI – REST API

In this part we will try to start with REST API that need to do CRUD operations for ‘category‘ model and also how to setup proper routes to access them. I will implement REST API to work with JSON messages so that it will be easier for Backbone models and collections to work with.Before we(…)

More

Laravel, Backbone.js + Coffeescript Tutorial Part V – Data model

We have now created  our database table, next step is to create a data model to represent it. Laravel provides excellent ORM (object-relational mapper) known as ‘Eloquent’ for that, so we don’t need to write sql statements and direct database access using connections, commands for simple CRUD operations. But I personally like to use stored(…)

More