Redirect issue in laravel 4 -
i'm using laravel 4 , want add filter
after route logic. filter executed redirect instruction not executed return redirect::to($pool->url . '/share')->with('poolurl' ,url::to($pool->url));
code :
if(session::has('pool')){ $entry = session::get('pool'); // update pool userid $entry['user_id'] = auth::user()->id; $pool = pool::create($entry); // update pool url $pool->url = auth::user()->username . '/pool/' . str::slug($pool->beneficiary) . '/' . $pool->id; // update , redirect share page if($pool->save()) { return redirect::to($pool->url . '/share')->with('poolurl' ,url::to($pool->url)); } }
Comments
Post a Comment