2017 © Pedro Peláez
 

library laravel-quick-view

Quickly render view from controller without typing file names

image

armandsar/laravel-quick-view

Quickly render view from controller without typing file names

  • Tuesday, April 24, 2018
  • by armandsar
  • Repository
  • 2 Watchers
  • 26 Stars
  • 196 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 5 Versions
  • 3 % Grown

The README.md

Opinionated quick return for views in Laravel 5

Are you tired of typing out view name for your controllers? Then this package is for you!, (*1)

Software License Build Status Total Downloads, (*2)

Install

Via Composer, (*3)

``` bash $ composer require armandsar/laravel-quick-view, (*4)



## Usage Namespace and controller name as folders and method name as file name. Given that we have a Admin/UsersController ``` php public function create() { return quick(); }

would assume a view at admin/users/create.blade.php, (*5)

Or if you prefer not to use a helper, there is also a trait:, (*6)

``` php class UsersController { use Armandsar\QuickView\Quick;, (*7)

public function show($id)
{
    $user = User::findOrFail($id)
    return $this->quick(['user' => $user]);
}

}, (*8)


would assume a view at **admin/users/show.blade.php** ## Testing ``` bash $ phpunit

License

The MIT License (MIT). Please see License File for more information., (*9)

The Versions

24/04 2018

dev-master

9999999-dev https://github.com/armandsar/laravel-quick-view

Quickly render view from controller without typing file names

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel view

24/04 2018

1.0.1

1.0.1.0 https://github.com/armandsar/laravel-quick-view

Quickly render view from controller without typing file names

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel view

28/02 2018

1.0

1.0.0.0 https://github.com/armandsar/laravel-quick-view

Quickly render view from controller without typing file names

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel view

27/02 2018

0.2

0.2.0.0 https://github.com/armandsar/laravel-quick-view

Quickly render view from controller without typing file names

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel view

27/12 2017

0.1

0.1.0.0 https://github.com/armandsar/laravel-quick-view

Quickly render view from controller without typing file names

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel view