We discussed before how to create forms with laravel and then how to build validation rules. Now let’s see how to access error messages from form view.
Laravel has awesome methods to retrieve, change, create and store request data. It allows you to handle both
$_POST data and store in session or cookies. Let’s look at some methods of accessing request data.
We discussed later how to retrieve rows as objects and perform basic CRUD methods on them. Well,there are other good tasks that eloquent can perform. Let’s discuss some of them and the rest will be discussed in subsequent parts.
In Laravel Migrations Part1 ,I discussed how to create ,run and update your migrations. It seems you need more and fortunately laravel still have many features to enhance your application migrations. Let’s explore some of them.
After building your database schemas ,You should be searching if laravel could give some help and run these schemas .Fortunately laravel migrations come in handy. Laravel use custom table to keep track of all migrations that have already run for your application. You know what ?Let’s create a new migration.
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 .