• 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

Too few arguments to function PendingResourceRegistration::name(),1 passed in C:xampphtdocsproject outesweb.php on line 18 and exactly 2 expected

Nginx disallowing execution of PHP in uploads directory with Magento

Laravel MSSQL Server Connection not working

MySQL order by field in Eloquent

Laravel display validation error

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

How can I make good efficent AJAX live forms with just jQuery and

Symfony redirect if already loggedin from login page

PHP rotate matrix counter-clockwise

ldap is missing from system when installing adldap2 in laravel

Symfony redirect if already loggedin from login page

WordPress - Dynamically add user ID to the end of a URL

Changing font color in javascript

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource [duplicate]

Adding one microsecond to Datetime object in PHP

About Contact Privacy policy Terms and conditions