• 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 to send mail using gmail in Laravel?

Filter WooCommerce products with post__in and additional meta queries

Combining a describing and one array with data

Loading data from MySQL and populating dropdown select with jQuery Mobile, PHP

How can I get data from PHP to Android TextView?

Why the name of trucks are same in 2nd and 3rd record of company data retrieval?

how to create html table in php

How do I get friend list from Friends table with counts of friends of my friends

WooCommerce Subscriptions: Remove role on cancelled subscription

Additional price based on cart item count in WooCommerce

Nginx RTMP not recording

oauth-private.key does not exist or is not readable

How to redirect to another page after n seconds in wordpress without using javascript?

Distribute array row data to make multiple new rows

Lexik JWT authentication problem "Invalid credentials"

About Contact Privacy policy Terms and conditions