PublishingStubs
class PublishingStubs (View source)
Traits
Properties
| array | $stubs | The stubs being published.  | 
                
Methods
                    static void
                
                
                    dispatchIf(bool $boolean, mixed ...$arguments)
        
                                            
                Dispatch the event with the given arguments if the given truth test passes.
from 
Dispatchable
            
                    static void
                
                
                    dispatchUnless(bool $boolean, mixed ...$arguments)
        
                                            
                Dispatch the event with the given arguments unless the given truth test passes.
from 
Dispatchable
            
                    void
                
                
                    __construct(array $stubs)
        
                                            
                
            Create a new event instance.
                    $this
                
                
                    add(string $path, string $name)
        
                                            
                
            Add a new stub to be published.
Details
        
                static            void
    dispatch()
        
    
    Dispatch the event with the given arguments.
        
                static            void
    dispatchIf(bool $boolean, mixed ...$arguments)
        
    
    Dispatch the event with the given arguments if the given truth test passes.
        
                static            void
    dispatchUnless(bool $boolean, mixed ...$arguments)
        
    
    Dispatch the event with the given arguments unless the given truth test passes.
        
                static            PendingBroadcast
    broadcast()
        
    
    Broadcast the event with the given arguments.
        
                            void
    __construct(array $stubs)
        
    
    Create a new event instance.
        
                            $this
    add(string $path, string $name)
        
    
    Add a new stub to be published.