current url route laravel
\Route::current()
############### OR ####################
$request->getRequestUri()Get the current url
here using the Request::url() method. It will return the entire URL, but strip the query string from it.
<p> Url: {{ Request::url() }} </p>
Output
Url: http://localhost:8000/post/demois work
{{Request::path()}}
or
request()->path()
Also in PHP:
- Call to a member function connection() on null
- connect mongodb with php
- clearall cache laravel
- console rint in php method
- PHP script to get a list of folders from a path
- Warning: mysqli_fetch_all() expects parameter 1 to be mysqli_result, bool given in C:\newxammp\htdocs\learn\index.php on line 11
- date () php day and hour
- HTML form, add the data into it and submit it to the database by connecting it to MySQL database using PHP.
- creating a folder from php and make it writeable for all
- check if $_GET key existes in php
- DISTINCT laravel 5
- add month from date php
- PHP Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.2.0". You are running 5.6.40
- create seeder in laravel
- date format Y-m-d H:i:s and time zone in php
- check if a string contains php
- composer in serveur ionos
- codeigniter how to know update failed
- dd laravel query
- \r in php
- convert a php array into a javascript array
- exec output php
- Failed at the [email protected] production script. laravel
- aptitude install php7.4