Search
 
SCRIPT & CODE EXAMPLE
 

PHP

laravel redirect to previous page

url()->previous()
Comment

laravel login redirect to previous page

public function showLoginForm()
{
    if(!session()->has('url.intended'))
    {
        session(['url.intended' => url()->previous()]);
    }
    return view('auth.login');    
}
Comment

PREVIOUS NEXT
Code Example
Php :: not required a field when checked not applicable checkbox in laravel 
Php :: php detect mobile 
Php :: laravel create model with migration and controller 
Php :: mask card php 
Php :: laravel get extension from url 
Php :: count child products for each parent Product laravel 
Php :: how get just one parameter of all objects in one array in laravel 
Php :: laravel current timestamp 
Php :: carbon laravel use 
Php :: php get day diff 
Php :: php array move first element to last 
Php :: migration make 
Php :: Morocco 
Php :: get first 200 characters string php 
Php :: laravel hasone users relations 
Php :: disable SSL check in PHP cURL 
Php :: get current page php 
Php :: laravel blade short if 
Php :: laravel command progress 
Php :: php hide decimals if zero 
Php :: php save image from url to folder 
Php :: symfony get api paths 
Php :: lluminateHttpExceptionsPostTooLargeException 
Php :: barryvdh/laravel-dompdf laravel 8 header and footer every page 
Php :: php goto 
Php :: delete all rows from table laravel 
Php :: php reader read date from excel 
Php :: laravel eloquent get only field name 
Php :: laravel make model and controller 
Php :: How to add new column in table laravel 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =