laravel

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

Laravel, Backbone.js + Coffeescript Tutorial Part IV – Database

Laravel, Backbone.js + Coffeescript Tutorial Part IV – Database

We will try to implement simplest end-to-end web application, at the same time will try to cover most concepts and best approach to implement it. So our application is very simple one. It has just one database table category where we save id, code, name, created time, and modified time. UI will have search panel where you(…)

More