RouteCollection::add()

Route add(Route $route) Add a Route instance to the collection. Parameters Route $route Return Value Route

RouteCollection

RouteCollection class RouteCollection implements Countable, IteratorAggregate (View source) Methods Route add(Route $route) Add a Route instance to the collection. void refreshNameLookups() Refresh the name look-up table. Route match(Request $request) Find the first route matching a given request. array get(string|null $method = null) Get all of the routes in the collection. bool hasNamedRoute(string $name) Determine if the route collection contains a given named route

RouteClearCommand::__construct()

void __construct(Filesystem $files) Create a new route clear command instance. Parameters Filesystem $files Return Value void

RouteClearCommand::warn()

void warn(string $string) Write a string as warning output. Parameters string $string Return Value void

RouteClearCommand::table()

void table(array $headers, Arrayable|array $rows, string $style = 'default') Format input to textual table. Parameters array $headers Arrayable|array $rows string $style Return Value void

RouteClearCommand::setLaravel()

void setLaravel(Application $laravel) Set the Laravel application instance. Parameters Application $laravel Return Value void

RouteClearCommand::secret()

string secret(string $question, bool $fallback = true) Prompt the user for input but hide the answer from the console. Parameters string $question bool $fallback Return Value string

RouteClearCommand::run()

int run(InputInterface $input, OutputInterface $output) Run the console command. Parameters InputInterface $input OutputInterface $output Return Value int

RouteClearCommand::question()

void question(string $string) Write a string as question output. Parameters string $string Return Value void

RouteClearCommand::option()

string|array option(string $key = null) Get the value of a command option. Parameters string $key Return Value string|array