Once you database tables created ,it is a complex task to update these tables names and their structure .But i think laravel has another opinion .Let’s get started and i will show you how laravel take care of you .
Schema class have several methods that have varied uses .Let’s take a look at them .
Does your application need to store data in a database ? Well let’s see if laravel will give help .Laravel support MySQL ,SQLite ,PostgreSQL and SQL Server Platforms .Also it has very flexible abstraction layer .It can work with multi database applications .Secured as it escape value for you .Let’s explore how laravel take care of you .
Laravel like any php framework separate visual aspects of your application from business logic .Before we get started to explore templating syntax . I will show you how to render view files from a route or controller .
Laravel 4.1 provides us with a handful routing API which can be used for both small and large application .Also with this API you can define RESTful controllers ,and controllers can have predefined methods to receive requests via GET,PUT,DELETE,POST and UPDATE .we will see this later in subsequent tutorials but now we will discus basic routing API.
PHP provides some handful methods which can be used within your classes to intercept messages sent to undefined methods and properties .Some developers call this overloading .These methods like
__construct() method which invoked when you instantiate object .Let’s explores these methods .
Package is a set of PHP classes grouped in some manner .Many developers use file system to organise their applications because PHP has no native concept of a package until PHP 5.3 .With PHP 5.3 ,namespaces become part of PHP .I know that most of us think many times before using namespaces in any commercial code .you know ,not all servers support PHP 5.3 but this will be for a while .