Well, First Thank you in advanced. I Have One Problem on session , when i store data And retrive data it worked. i have 1 table whos name is plan. their have 2 entries. 1st premium & 2nd freemium. it just subscripton process. so my question is when i click on premium it will fetch only premium. but in my case it will print premium & freemium. so code is here.
//Controller
1. getplan()
public function getPlan(){
$plans = ComposerPlan::get();
Session::put('plan', $plans);
$this->layout->content = View::make('auth.authcomposer.composer-plan', compact('plans'));
}
2. getComSignup
public function getComSignup(){
// Show the page
$value = Session::get('plan');
$this->layout->content = View::make('auth.authcomposer.composer-signup', compact('value'));
}
//Blade
//for put session
<a class="btn btn-default btn-green no-pjax plan-box @if($blanket) hidden @endif" data-plan-id="" href="">Select Plan</a>
//for fetch session
@foreach($value as $v)
@endforeach
Well, First Thank you in advanced. I Have One Problem on session , when i store data And retrive data it worked. i have 1 table whos name is plan. their have 2 entries. 1st premium & 2nd freemium. it just subscripton process. so my question is when i click on premium it will fetch only premium. but in my case it will print premium & freemium. so code is here.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire