Category: Laravel Basics

Laravel Basics

Starting Blade Templating in laravel 5

Starting Blade Templating in laravel 5

In the following example we are creating our first example with blade template engine. Directory structure Route file (routes.php) Controller file (Authors_Controller.php) Views file(index.blade.php) Output Data display abc abcCompany xyz

First MVC Hello world in Laravel

First MVC Hello world in Laravel

In order to create a custom MVC in laravel we have to define : route of the request controller for request handling view for generating HTML Step 1 (defining route in ‘routes.php’) Step 2...

Adding routes in Laravel project

Adding routes in Laravel project

For adding routes in routes.php we need to add different routes with their equivalent view that is returned or some random text that we want to return. In the following example we are adding...

Basic Routing

Basic Routing

You will define most of the routes for your application in the app/Http/routes.php file, which is loaded by the App\Providers\RouteServiceProvider class. The most basic Laravel routes simply accept a URI and a Closure: Basic...