PHP code example of ralphjsmit / livewire-urls
1. Go to this page and download the library: Download ralphjsmit/livewire-urls 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/ */
ralphjsmit / livewire-urls example snippets
use RalphJSmit\Livewire\Urls\Facades\Url;
$currentUrl = Url::current();
$currentRouteName = Url::currentRoute();
$previousUrl = Url::previous();
$previousRouteName = Url::previousRoute();
$lastRecordedUrl = Url::lastRecorded();
$lastRecordedRoute = Url::lastRecordedRoute();