• 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

Doctrine 2 mapping referencing unique key

The difference when using if statement true === something() vs something() === true [duplicate]

Post Form Data To phpmyadmin Database

javascript html popup window

Limit WooCommerce products in cart only from one custom taxonomy

find in set in laravel ? example

Magento Installation SQLSTATE[HY000] [2002] No such file or directory error

In PHP, which is faster: preg_split or explode?

sort() not affecting original array while inside foreach loop

Cache clear probem in Larave

sqlsrv_num_rows() expects parameter 1 to be resource, boolean given

If action is on a different page do I use fwrite function

Form repeater send wrong data with last element in Laravel

Xdebug can't connect back to Docker host

How to get monthly wise data in laravel

About Contact Privacy policy Terms and conditions