• 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

How to auto populate preferredCountries from intl-tel-input with db output

Getting values for an enum?

Put content of wordpress page inside div

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

WordPress Subquery returns more than 1 row on SELECT

PHP: Convert any string to UTF-8 without knowing the original character set, or at least try

how to check version of codeigniter framework?

PHP web3 ERC20 token function call

Session timeout in Yii2

PHP, how to convert Int value to Week days

Laravel Blade checkbox not checked

Creating Combinations of Elements

Inserting Country Selection into MySQL PHP [duplicate]

php echo remove slashes from url [duplicate]

What is my SQL missing?

About Contact Privacy policy Terms and conditions