Laravel Classroom image

Anil  Bist / Professional / Web Technology

 
To post your Question Join Classroom
 
Lesson Topics's No:-  First|1 | 2 | 3 | 4 | 5|Last
Lessons:-Events

12.3 Events With Parameters
Extra information can be passed to a listener from a fired event by passing an array of values to
the event closure. Like this..
1 <?php
2
3 $responses = Event::fire('dinner.time', array(1, 2, 3));
We can then add parameters to the closure in our listener to ‘catch’ these values, like so :
1 <?php
2
3 Event::listen('dinner.time', function($one, $two, $three) {
4 return 'thanks for the grub!';
5 });
Easy as pie! Which coincidentally is what is for dinner.

 
 
 
image
Anil  Bist

Skills    Laravel

Qualifications :- High School - SLV, College/University - Graphic Era Deemed Univ University,
Location :-Dehradun,Dehradun,Uttarakhand,India
Description:-

I started my Professional Journey in 2006 with one of the Web Development Company in Bangalore and my 1st framework was "Ruby on Rail" as Web development and delivered around 5+ Projects using this platform. Then came another dimension as JEE/Sturst framework, Gradually I realized that I want to build something on my own and give my passion and energy on creating something different a
Explore

 

  Students (0)