• 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

selected value from the listbox in php

Backend cannot be reached after Typo3 login screen

CSS file not imported in laravel blade view

Fatal error: Uncaught mysqli_sql_exception: Unknown database 'test' in ... (How do I fix that? Using PHP)

Adding reCAPTCHA v2 into my PHP file

PHP using str_starts_with for array to exclude same as with wildcard

error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure

Laravel PHP: multiple project run at the same time [closed]

Required field only if another field has a value, must be empty otherwise

Laravel Schedule not sending email

How to loop a tree array with unknown depth and get array blocks?

Center point of multiple gps coordinates with php

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given [duplicate]

Smarty if isset

How to update array value in Laravel

About Contact Privacy policy Terms and conditions