• 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

Get data from accuweather api url

Laravel views are showing from cache on one server but works fine on other server

How to update array value in Laravel

PHP 8.1: strftime() is deprecated

Yii Ajax Submit button

How can I get a div content in php

How to use functions that are declared in snippets in Evolution CMS (Modx) in an external PHP Script?

Smarty if isset

PHP -> Next nearest date defined by array of days in week

Coinpayments create_transaction "ERROR: Invalid command!"

(Laravel) How to delete multiple models including optional relationships?

Override default Auth routes in Laravel 7

phpmyadmin : Depends: php-twig (>= 2.9) but 2.6.2-2 is to be installed. WHAT?

XSS attack still works despite htmlspecialchars() doing its work

How can I create a Download Page with post php method?

About Contact Privacy policy Terms and conditions