julles / route-controller by julles

Route Controller for Laravel 5.3++
898
1
2
Package Data
Maintainer Username: julles
Maintainer Contact: reza.wikrama3@gmail.com (Muhamad Reza Abdul Rohim)
Package Create Date: 2017-08-11
Package Last Update: 2017-10-03
Language: PHP
License: MIT
Last Refreshed: 2024-11-24 03:01:23
Package Statistics
Total Downloads: 898
Monthly Downloads: 1
Daily Downloads: 0
Total Stars: 1
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

Route Controller For Laravel 5.3++

Total Downloads License

If you are used to using laravel 4 or laravel 5.2 you may be familiar with Route :: controller, but unfortunately in laravel 5.3 ++ Route Controller will be deleted.

But do not worry, by using this package you can reuse the artificial route controller and maintained by me (Muhamad Reza AR)

How to Install ?

Add Packages in composer

composer require muhamadrezaar/route-controller

Add service provider and facade

Julles\RouteControllerProvider::class,
'RouteController'=>Julles\RouteControllerFacade::class,

How to Use ?

in route file (routes/web.php)

	\RouteController::build('tes','TesController');

Samples Methods in Source Controller


public function getIndex() // url generated : yoururl.dev/tes or yoururl.dev/tes/index
{
	dd('hello world');
}

public function getTriRiska() // url generated yoururl.dev/tes/tri-riska
{
    dd('My Friend');
}

public function postCreate() // url generated yoururl.dev/tes/create
{
	
}

License

MIT

https://reza.mit-license.org/

ENJOY!!