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 5
5
use App \Models \Article ;
6
6
use App \Models \Tag ;
7
7
use App \Models \User ;
8
- use App \Notifications \SendSubmittedArticle ;
9
8
use App \Traits \WithArticleAttributes ;
10
9
use App \Traits \WithTagsAssociation ;
11
10
use Illuminate \Support \Facades \Auth ;
12
11
use Illuminate \Support \Facades \Cache ;
13
- use Illuminate \Support \Facades \Notification ;
14
12
use Livewire \Component ;
15
13
use Livewire \WithFileUploads ;
16
14
@@ -76,14 +74,6 @@ public function save()
76
74
$ this ->article ->addMedia ($ this ->file ->getRealPath ())->toMediaCollection ('media ' );
77
75
}
78
76
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
-
87
77
Cache::forget ('post- ' . $ this ->article ->id );
88
78
89
79
$ user ->hasRole ('user ' ) ?
You can’t perform that action at this time.
0 commit comments