• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Laravel 4 Redirect::back() not going to previous page (refreshing current page)

phpredirectlaravel-4


PHP Snippet 1:

Route::get('/customer', array('as' => 'customer', 'uses' => 'MyController@showCustomer'));

PHP Snippet 2:

function saveCustomer($id) {

    ...

    Redirect::route('customer');
}

PHP Snippet 3:

if(isset($_SERVER['HTTP_REFERER']))
    return Redirect::back();

return Redirect::to('/');

Related Snippets

(PHPUnit) PHP Fatal error: Uncaught Error: Call to undefined function each()

Warning: mysqli_stmt::bind_param(): Number of elements in type definition string doesn't match number of bind variables 11 [closed]

auth pages not getting css in laravel

PHP only Hit Counter?

Laravel after login Two factor not working

I want a way to give path to my files which are outside of public folder in laravel

PHP usort() order in case of equality

Cache clear probem in Larave

Install mysql client in docker image

Php - Sum up the numbers in an array one by one

wp_remote_get() not passing authentication

How to fix Call to undefined method AppModelsTableName::factory?

Star and Half Star Rating in Laravel

Laravel Unknown Column 'updated_at'

What is PHP's equivalent of JavaScript's "array.every()"?

About Contact Privacy policy Terms and conditions