示例#1
0
 public function __construct(Model $product, Model $review, CategoryRepositoryInterface $categoryRepository, UserRepositoryInterface $userRepository)
 {
     parent::__construct($product);
     $this->product = $product;
     $this->review = $review;
     $this->categoryRepository = $categoryRepository;
     $this->userRepository = $userRepository;
 }
 public function create(array $data)
 {
     $result = parent::create($data);
     Event::fire(new MessageWasCreated($result));
 }
 public function __construct(Model $channel)
 {
     parent::__construct($channel);
     $this->channel = $channel;
 }
 public function __construct(Model $internetSession)
 {
     parent::__construct($internetSession);
     $this->internetSession = $internetSession;
 }
示例#5
0
 public function __construct(Model $book)
 {
     parent::__construct($book);
     $this->book = $book;
 }
示例#6
0
 public function __construct(Model $user)
 {
     parent::__construct($user);
     $this->user = $user;
 }
 public function __construct(Model $key, InternetSessionRepositoryInterface $internetSessionRepository)
 {
     parent::__construct($key);
     $this->key = $key;
     $this->internetSessionRepository = $internetSessionRepository;
 }
示例#8
0
 public function __construct(Model $category)
 {
     parent::__construct($category);
     $this->category = $category;
 }