2017 © Pedro Peláez
 

library laravel-route-view-helper

Syntactic sugar for those occasions when you only want to display a basic view.

image

brayniverse/laravel-route-view-helper

Syntactic sugar for those occasions when you only want to display a basic view.

  • Tuesday, February 28, 2017
  • by brayniverse
  • Repository
  • 1 Watchers
  • 1 Stars
  • 36 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Laravel route view helper

Build Status Total Downloads Latest Stable Version Latest Unstable Version License, (*1)

Syntactic sugar for those occasions when you only want to display a basic view., (*2)

This package adds a Route::view() helper method so you don't have to create a closure when all you are returning is a view., (*3)

Installation

Begin by installing the package through Composer., (*4)

$ composer require brayniverse/laravel-route-view-helper

Then add the following to your providers array in config/app.php., (*5)

Brayniverse\LaravelRouteViewHelper\ServiceProvider::class

Usage

Normally you'd have to return a view in either a controller method or callback like the following:, (*6)

public function contact()
{
  return view('contact');
}

// or

Route::get('/contact', function () {
  return view('contact');
});

Now you can do the same in one line., (*7)

Route::view('/contact', 'contact');

Credits

The Versions

28/02 2017

dev-master

9999999-dev https://github.com/brayniverse/laravel-route-view-helper

Syntactic sugar for those occasions when you only want to display a basic view.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel helper routing view

28/02 2017

v1.0.5

1.0.5.0 https://github.com/brayniverse/laravel-route-view-helper

Syntactic sugar for those occasions when you only want to display a basic view.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel helper routing view

13/01 2017

v1.0.4

1.0.4.0 https://github.com/brayniverse/laravel-route-view-helper

Syntactic sugar for those occasions when you only want to display a basic view.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel helper routing view

05/01 2017

v1.0.3

1.0.3.0 https://github.com/brayniverse/laravel-route-view-helper

Syntactic sugar for those occasions when you only want to display a basic view.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel helper routing view

05/01 2017

v1.0.2

1.0.2.0 https://github.com/brayniverse/laravel-route-view-helper

Syntactic sugar for those occasions when you only want to display a basic view.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel helper routing view

25/11 2016

v1.0.1

1.0.1.0 https://github.com/brayniverse/laravel-route-view-helper

Syntactic sugar for those occasions when you only want to display a basic view.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel helper routing view

05/10 2016

v1.0.0

1.0.0.0 https://github.com/brayniverse/laravel-route-view-helper

Syntactic sugar for those occasions when you only want to display a basic view.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel helper routing view