File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
app/Http/Livewire/Articles Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change 55use App \Models \Article ;
66use App \Models \Tag ;
77use App \Models \User ;
8- use App \Notifications \SendSubmittedArticle ;
98use App \Traits \WithArticleAttributes ;
109use App \Traits \WithTagsAssociation ;
1110use Illuminate \Support \Facades \Auth ;
1211use Illuminate \Support \Facades \Cache ;
13- use Illuminate \Support \Facades \Notification ;
1412use Livewire \Component ;
1513use Livewire \WithFileUploads ;
1614
@@ -76,14 +74,6 @@ public function save()
7674 $ this ->article ->addMedia ($ this ->file ->getRealPath ())->toMediaCollection ('media ' );
7775 }
7876
79- if (! $ this ->alreadySubmitted ) {
80- // Envoi du mail a l'admin pour la validation de l'article
81- $ admin = User::findByEmailAddress ('monneylobe@gmail.com ' );
82- Notification::send ($ admin , new SendSubmittedArticle ($ this ->article ));
83-
84- session ()->flash ('status ' , 'Merci d \'avoir soumis votre article. Vous aurez des nouvelles uniquement quand nous accepterons votre article. ' );
85- }
86-
8777 Cache::forget ('post- ' . $ this ->article ->id );
8878
8979 $ user ->hasRole ('user ' ) ?
You can’t perform that action at this time.
0 commit comments