programming

Programming tutorials, code snippets, coding tips and tricks, solutions to some of the issues I faced while programming. I believe someone else might face the same issues and this is to help them as well

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

Laravel, Backbone.js + Coffeescript Tutorial Part III – Install Laravel

Laravel, Backbone.js + Coffeescript Tutorial Part III – Install Laravel

Now we need to install Laravel PHP framework into our web folder as the web application will be implemented using Laravel. Step 1 – Download Latavel Go to this link (www.laravel.com ) and download the latest Laravel framework. Unzip its contents and copy into the web folder, your lbc folder should have following folder structure.(…)

More