Category Archives: Laravel

Building laravel first application

Actually, i have search the simple example database program about laravel.
These 3 links are awesome. Starting from the general understanding of laravel and how to set the environment.

When i set the environment, i have some question about setting environment in my computer (I use windows 7 here), but i find it at the 2nd and 3rd link,

1 . Building laravel
http://net.tutsplus.com/tutorials/php/building-web-applications-from-scratch-with-laravel/
2 . Set System Environment
http://www.w3programmers.com/getting-started-with-laravel-configuration-controlling-routing-viewing/env-var-setup/
3. Edit the host file and set the apache config file (windows 7)
http://answers.microsoft.com/en-us/windows/forum/windows_7-files/windows7-will-not-let-me-edit-the-hosts-file-and/9cede7a3-1908-4606-a955-64a9b4872fd7
or http://stackoverflow.com/questions/12448912/apache-mod-rewrite-for-laravel
or http://www.terrymatula.com/development/2012/setting-up-a-virtual-host-for-wamp-and-laravel/

http://stackoverflow.com/questions/13927581/simple-application-built-with-laravel
Another example:
http://codehappy.daylerees.com/

Tutorial Video: http://andrewperkins.net/laravel

Application using laravel http://webpilipinas.github.io/bukaspalad/

Laravel Unit Testing
http://ratbie.blogspot.com/2012/12/windows-8-install-phpunit-in-laravel.html
http://net.tutsplus.com/tutorials/php/test-driven-development-in-php-first-steps/

Laravel E-Book
http://doc.laravelbook.com/

Laravel Example:

Laravel System management

if you using xampp you can try this one:
http://setup-steps.blogspot.com/2013/01/laravel-virtual-host-on-xampp.html
http://stackoverflow.com/questions/89118/apache-gives-me-403-access-forbidden-when-documentroot-points-to-two-different-d

Laravel #3 What makes laravel different

Well, these are things that show what makes laravel different with others:

1. Bundles are Laravel’s modular packaging system. The Laravel Bundle Repository is already populated with quite a few features that can be easily added to your application. You can either download a bundle repository to your bundles directory or use the “Artisan” command-line tool to automatically install them.

2. The Eloquent ORM is the most advanced PHP ActiveRecord implementation available. With the capacity to easily apply constraints to both relationships and nested eager-loading you’ll have complete control over your data with all of the conveniences of ActiveRecord. Eloquent natively supports all of the methods from Laravel’s Fluent query-builder.

3.Application Logic can be implemented within your application either using controllers (which many web-developers are already familiar with) or directly into route declarations using syntax similar to the Sinatra framework. Laravel is designed with the philosophy of giving a developer the flexibility that they need to create everything from very small sites to massive enterprise applications.

4.Reverse Routing allows you to create links to named routes. When creating links just use the route’s name and Laravel will automatically insert the correct URI. This allows you to change your routes at a later time and Laravel will update all of the relevant links site-wide.

5.Restful Controllers are an optional way to separate your GET and POST request logic. In a login example your controller’s get_login() action would serve up the form and your controller’s post_login() action would accept the posted form, validate, and either redirect to the login form with an error message or redirect your user to their dashboard.

6. Class Auto Loading keeps you from having to maintain an autoloader configuration and from loading unnecessary components when they won’t be used. Want to use a library or model? Don’t bother loading it, just use it. Laravel will handle the rest.

7.View Composers are blocks of code that can be run when a view is loaded. A good example of this would be a blog side-navigation view that contains a list of random blog posts. Your composer would contain the logic to load the blog posts so that all you have to do is load the view and it’s all ready for you. This keeps you from having to make sure that your controllers load the a bunch of data from your models for views that are unrelated to that method’s page content.

8.The IoC container (Inversion of Control) gives you a method for generating new objects and optionally instantiating and referencing singletons. IoC means that you’ll rarely ever need to bootstrap any external libraries. It also means that you can access these objects from anywhere in your code without needing to deal with an inflexible monolithic structure.

9. Migrations are version control for your database schemas and they are directly integrated into Laravel. You can both generate and run migrations using the “Artisan” command-line utility. Once another member makes schema changes you can update your local copy from the repository and run migrations. Now you’re up to date, too!

10.Unit-Testing is an important part of Laravel. Laravel itself sports hundreds of tests to help ensure that new changes don’t unexpectedly break anything. This is one of the reasons why Laravel is widely considered to have some of the most stable releases in the industry. Laravel also makes it easy for you to write unit-tests for your own code. You can then run tests with the “Artisan” command-line utility.

11. Automatic Pagination prevents your application logic from being cluttered up with a bunch of pagination configuration. Instead of pulling in the current page, getting a count of db records, and selected your data using a limit/offset just call ‘paginate’ and tell Laravel where to output the paging links in your view. Laravel automatically does the rest. Laravel’s pagination system was designed to be easy to implement and easy to change. It’s also important to note that just because Laravel can handle these things automatically doesn’t mean that you can’t call and configure these systems manually if you prefer.

Source : http://laravel.com/docs