SlideShare a Scribd company logo
Radio1
1. Composer ->Install(dev)
2. Composer->Update(dev)
3. Install LaravelCollective
4. Modificati numele fisierului: .env.example ->.env
• Creati controller-ul: /app/Http/Controllers/FormController
<?php
namespace AppHttpControllers;
class FormController extends Controller {
public function index()
{
return view('form');
}
public function view()
{
if(!isset($_POST["evaluari"])){
$var="";
}else{
$var=$_POST["evaluari"];
}
return view('form1')->with('var',$var);
}
}
?>
• Editati /routes/web.php
<?php
Route::get('/', 'WelcomeController@index');
Route::get('home', 'HomeController@index');
Route::any('form', 'FormController@index');
Route::any('form1', 'FormController@view');
Route::controllers([
'auth' => 'AuthAuthController',
'password' => 'AuthPasswordController',
]);
• Creati vederea: /resources/views/form.blade.php
<!DOCTYPE html>
<h1>Choose student</h1>
<?php
echo Form::open(array('action' => 'FormController@view'));
echo Form::label('Student1');
echo $evaluari=Form::radio('evaluari', 'Student1').”<br/>”;
echo Form::label('Student2');
echo $evaluari=Form::radio('evaluari', 'Student2').”<br/>”;
echo Form::label('Student3');
echo $evaluari=Form::radio('evaluari', 'Student3', true) !!}.”<br/>”;
echo Form::submit('Submit').”<br/><br/>”;
echo Form::close();
?>
• Creati vederea: /resources/views/form1.blade.php
Ati selectat: <?php echo $var;?>.

More Related Content

PPTX
4. copy2 in Laravel
PPTX
6. Add numbers in Laravel
PPTX
3. Copy1 in Laravel
PPTX
1. Hello Popescu in Laravel
PPTX
7. Lower upper in Laravel
PPTX
2.hello popescu2 in Laravel
PPTX
8. Move in Laravel
PPTX
21.search in laravel
4. copy2 in Laravel
6. Add numbers in Laravel
3. Copy1 in Laravel
1. Hello Popescu in Laravel
7. Lower upper in Laravel
2.hello popescu2 in Laravel
8. Move in Laravel
21.search in laravel

What's hot (17)

PDF
Codeigniter : Two Step View - Concept Implementation
PPTX
Zend framework
PDF
Unit testing after Zend Framework 1.8
PDF
Do more, faster, by extending WP-CLI
PPTX
Laravel Beginners Tutorial 2
PDF
Generators
PDF
Silex Cheat Sheet
PDF
Using the new WordPress REST API
PDF
Angular promises and http
PDF
Extending the WordPress REST API - Josh Pollock
PDF
Getting Started-with-Laravel
PDF
Bootstrat REST APIs with Laravel 5
PPTX
23.simple login with sessions in laravel 5
PDF
Laravel 101
PPTX
16.mysql stored procedures in laravel
PPT
J M Githeko Agenda Software installation – Apche, MySQL, PHP
PDF
Wordcamp Plugins
Codeigniter : Two Step View - Concept Implementation
Zend framework
Unit testing after Zend Framework 1.8
Do more, faster, by extending WP-CLI
Laravel Beginners Tutorial 2
Generators
Silex Cheat Sheet
Using the new WordPress REST API
Angular promises and http
Extending the WordPress REST API - Josh Pollock
Getting Started-with-Laravel
Bootstrat REST APIs with Laravel 5
23.simple login with sessions in laravel 5
Laravel 101
16.mysql stored procedures in laravel
J M Githeko Agenda Software installation – Apche, MySQL, PHP
Wordcamp Plugins
Ad

Similar to 9. Radio1 in Laravel (20)

ODP
CodeIgniter PHP MVC Framework
PPTX
15.exemplu complet eloquent view add-edit-delete-search
PDF
Getting to know Laravel 5
PDF
関西PHP勉強会 php5.4つまみぐい
PDF
What's New In Laravel 5
PPTX
Laravel 5
PDF
Frameworks da nova Era PHP FuelPHP
PDF
Silex Cheat Sheet
KEY
Phpne august-2012-symfony-components-friends
PPTX
Laravel - Website Development in Php Framework.
PPTX
Laravel development (Laravel History, Environment Setup & Laravel Installatio...
PPTX
13.exemplu closure controller
PDF
Quality Assurance for PHP projects - ZendCon 2012
PDF
symfony on action - WebTech 207
PPTX
10 Things Every Plugin Developer Should Know (WordCamp Atlanta 2013)
PDF
Laravel 5 Annotations: RESTful API routing
PPTX
Laravel 5.5 dev
ODP
Zend Framework 1.9 Setup & Using Zend_Tool
PDF
[Bristol WordPress] Supercharging WordPress Development
PDF
Caldera Learn - LoopConf WP API + Angular FTW Workshop
CodeIgniter PHP MVC Framework
15.exemplu complet eloquent view add-edit-delete-search
Getting to know Laravel 5
関西PHP勉強会 php5.4つまみぐい
What's New In Laravel 5
Laravel 5
Frameworks da nova Era PHP FuelPHP
Silex Cheat Sheet
Phpne august-2012-symfony-components-friends
Laravel - Website Development in Php Framework.
Laravel development (Laravel History, Environment Setup & Laravel Installatio...
13.exemplu closure controller
Quality Assurance for PHP projects - ZendCon 2012
symfony on action - WebTech 207
10 Things Every Plugin Developer Should Know (WordCamp Atlanta 2013)
Laravel 5 Annotations: RESTful API routing
Laravel 5.5 dev
Zend Framework 1.9 Setup & Using Zend_Tool
[Bristol WordPress] Supercharging WordPress Development
Caldera Learn - LoopConf WP API + Angular FTW Workshop
Ad

More from Razvan Raducanu, PhD (20)

PPTX
12. edit record
PPTX
11. delete record
PPTX
10. view one record
PPTX
9. add new record
PPTX
8. vederea inregistrarilor
PPTX
PPTX
6. hello popescu 2
PPTX
5. hello popescu
PPTX
4. forme in zend framework 3
PPTX
3. trimiterea datelor la vederi
PPTX
2.routing in zend framework 3
PPTX
1. zend framework intro
PPTX
18. images in symfony 4
PPTX
17. delete data
PPTX
16. edit data
PPTX
15. view single data
PPTX
14. add data in symfony4
PPTX
13. view data
PPTX
12.doctrine view data
PPTX
11. move in Symfony 4
12. edit record
11. delete record
10. view one record
9. add new record
8. vederea inregistrarilor
6. hello popescu 2
5. hello popescu
4. forme in zend framework 3
3. trimiterea datelor la vederi
2.routing in zend framework 3
1. zend framework intro
18. images in symfony 4
17. delete data
16. edit data
15. view single data
14. add data in symfony4
13. view data
12.doctrine view data
11. move in Symfony 4

Recently uploaded (20)

PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Pharma ospi slides which help in ospi learning
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
Institutional Correction lecture only . . .
PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
Insiders guide to clinical Medicine.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
Supply Chain Operations Speaking Notes -ICLT Program
2.FourierTransform-ShortQuestionswithAnswers.pdf
Pharma ospi slides which help in ospi learning
O5-L3 Freight Transport Ops (International) V1.pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Final Presentation General Medicine 03-08-2024.pptx
Institutional Correction lecture only . . .
TR - Agricultural Crops Production NC III.pdf
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
Insiders guide to clinical Medicine.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Complications of Minimal Access Surgery at WLH
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
O7-L3 Supply Chain Operations - ICLT Program
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Abdominal Access Techniques with Prof. Dr. R K Mishra

9. Radio1 in Laravel

  • 2. 1. Composer ->Install(dev) 2. Composer->Update(dev) 3. Install LaravelCollective 4. Modificati numele fisierului: .env.example ->.env
  • 3. • Creati controller-ul: /app/Http/Controllers/FormController <?php namespace AppHttpControllers; class FormController extends Controller { public function index() { return view('form'); } public function view() { if(!isset($_POST["evaluari"])){ $var=""; }else{ $var=$_POST["evaluari"]; } return view('form1')->with('var',$var); } } ?>
  • 4. • Editati /routes/web.php <?php Route::get('/', 'WelcomeController@index'); Route::get('home', 'HomeController@index'); Route::any('form', 'FormController@index'); Route::any('form1', 'FormController@view'); Route::controllers([ 'auth' => 'AuthAuthController', 'password' => 'AuthPasswordController', ]);
  • 5. • Creati vederea: /resources/views/form.blade.php <!DOCTYPE html> <h1>Choose student</h1> <?php echo Form::open(array('action' => 'FormController@view')); echo Form::label('Student1'); echo $evaluari=Form::radio('evaluari', 'Student1').”<br/>”; echo Form::label('Student2'); echo $evaluari=Form::radio('evaluari', 'Student2').”<br/>”; echo Form::label('Student3'); echo $evaluari=Form::radio('evaluari', 'Student3', true) !!}.”<br/>”; echo Form::submit('Submit').”<br/><br/>”; echo Form::close(); ?>
  • 6. • Creati vederea: /resources/views/form1.blade.php Ati selectat: <?php echo $var;?>.