PHP code example of permafrost-dev / laravel-current-route
1. Go to this page and download the library: Download permafrost-dev/laravel-current-route library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
permafrost-dev / laravel-current-route example snippets
// Return a Laravel Route object for the current route.
function current_route();
// Return a class containing information about the current route.
function current_route_info();
// Return the action for the current route.
function current_route_action();
// Return true if one of the specified wildcard patterns matches the name of the current route.
function current_route_matches($patterns);
// Return the name for the current route.
function current_route_name();
// Returns true if $name matches the name of the current route.
function current_route_named($name);