Quickly render view from controller without typing file names
armandsar/laravel-quick-view is a Laravel package for quickly render view from controller without typing file names.
It currently has 22 GitHub stars and 271 downloads on Packagist (latest version 1.0.1).
Install it with composer require armandsar/laravel-quick-view.
Discover more Laravel packages by armandsar
or browse all Laravel packages to compare alternatives.
Last updated
Are you tired of typing out view name for your controllers? Then this package is for you!
Via Composer
$ composer require armandsar/laravel-quick-view
Namespace and controller name as folders and method name as file name.
Given that we have a Admin/UsersController
public function create()
{
return quick();
}
would assume a view at admin/users/create.blade.php
Or if you prefer not to use a helper, there is also a trait:
class UsersController
{
use Armandsar\QuickView\Quick;
public function show($id)
{
$user = User::findOrFail($id)
return $this->quick(['user' => $user]);
}
}
would assume a view at admin/users/show.blade.php
$ phpunit
The MIT License (MIT). Please see License File for more information.