2017 © Pedro Peláez
 

library lexroute

Extra command route for laravel

image

novanandriyono/lexroute

Extra command route for laravel

  • Wednesday, July 18, 2018
  • by larasati
  • Repository
  • 1 Watchers
  • 0 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 42 % Grown

The README.md

lexroute

Extra command route for laravel, (*1)

Install via Composer

composer require novanandriyono/lexroute

How to use

alt tag, (*2)

Update Route

Controller that has public function. [recursive], (*3)

php artisan route:update

Edit one of routes

php artisan route:edit route.name

it will show to use same options if route name has found., (*4)

Publish Config

By default it will lock default location laravel app. please take a look config. if we have different value, we can publish config and edit it;, (*5)

php artisan vendor:publish --tag=lexroute.config

About Updating Api Route

Using -a for update or edit api route, (*6)

php artisan route:update -a

or, (*7)

php artisan route:edit route.name -a

we must publish config to use api update. api Controller must in one folder like, (*8)

'apicontrollerpath' => 'App/Http/Controllers/Api',

User Notice

  • Route must have tag ->name if not will be erased or lost.
  • Route name will follow with function name.
  • Creating new function it mean will creating route line when update.
  • Creating new name or edit name will be save and it will creating new one
  • Using tag name must at last line.
  • Not exists callback will be remove except Object Closure.
  • Still dev for update name option and some check.
  • Just can be use on local env and artisan console.
  • And Maybe we must removing this package on production, So someone does not use this module and edit our route XD

Function Name is Route Name

if we creating new function like, (*9)

class Items extends Controller{
publich function likethis(){};

it will creating route like, (*10)

->name('items.likethis');

Available auto method route where update:

  • function name with contains 'index,show,show,create,get' at first line will be result Route:get
  • function name with contains 'store' at first line will be result Route:post
  • function name with contains 'update' at first line will be result Route:match
  • function name with contains 'patch' at first line will be result Route:patch
  • function name with contains 'PUT' at first line will be result Route:put
  • function name with contains 'delete,destroy' at first line will be result Route:delete
  • except from the list above wil be result Route:get

Not Support

  • This command not support 'use' on head it will be removed on update like:
<?php

use SomeClass/Foo;

But we can use like this for callback like:, (*11)

Route::get('foo',function(SomeClass/Foo $foo){
return $foo;
})->name('someclass.foo');

if you can.. hee; * add route match when edit method. * etc please contact me. emang siapa yang mau make:p, (*12)

Why

I made lexroute because T_T I am still learning and very lazy to edit and add Route line. Make it fast at first laravel application. (T_T). @novanandriyono, (*13)

License

This project is licensed under the MIT License - see the LICENSE.md file for details, (*14)

The Versions

18/07 2018

dev-master

9999999-dev https://github.com/novanandriyono/lexroute

Extra command route for laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel lexroute

18/07 2018

dev-dev

dev-dev https://github.com/novanandriyono/lexroute

Extra command route for laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel lexroute

18/07 2018

v1.0.6

1.0.6.0 https://github.com/novanandriyono/lexroute

Extra command route for laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel lexroute

04/05 2018

v1.0.5

1.0.5.0 https://github.com/novanandriyono/lexroute

Extra command route for laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel lexroute

29/04 2018

v1.0.x-dev

1.0.9999999.9999999-dev https://github.com/novanandriyono/lexroute

Extra command route for laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel lexroute

29/04 2018

v1.0.4

1.0.4.0 https://github.com/novanandriyono/lexroute

Extra command route for laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel lexroute

25/04 2018

v1.0.3

1.0.3.0 https://github.com/novanandriyono/lexroute

Extra command route for laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel lexroute

20/04 2018

v1.0.2

1.0.2.0 https://github.com/novanandriyono/lexroute

Extra command route for laravel

  Sources   Download

MIT

The Requires

 

laravel lexroute

17/04 2018

v1.0.1

1.0.1.0 https://github.com/novanandriyono/lexroute

Extra command route for laravel

  Sources   Download

MIT

The Requires

 

laravel lexroute

16/04 2018

v1.0.0

1.0.0.0 https://github.com/novanandriyono/lexroute

Extra command route for laravel

  Sources   Download

MIT

The Requires

 

laravel lexroute