Fewo Mail MA, optimation Fewo, view User Fewos
This commit is contained in:
parent
e537e47a82
commit
346a7427a5
30 changed files with 915 additions and 963 deletions
|
|
@ -71,22 +71,21 @@ Route::group(['middleware' => ['auth']], function()
|
|||
$path = "";
|
||||
$filename = "";
|
||||
$headers = [];
|
||||
if ($class == 'invoices'){
|
||||
|
||||
if ($class == 'invoices' || $class == 'infos'){
|
||||
$headers = [
|
||||
'Content-Type: application/pdf',
|
||||
'Pragma: no-cache',
|
||||
'Cache-Control: no-store,no-cache, must-revalidate, post-check=0, pre-check=0'
|
||||
];
|
||||
$dir = $year."/";
|
||||
$filename = $file;
|
||||
if ($type == 'fewo') {
|
||||
$headers = array('Content-Type: application/pdf',);
|
||||
$dir = $year."/";
|
||||
$filename = $file;
|
||||
if(Storage::disk('fewo_invoices')->exists( $dir.$filename )){
|
||||
$path = Storage::disk('fewo_invoices')->path($dir.$filename);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($class == 'infos'){
|
||||
if ($type == 'fewo') {
|
||||
$headers = array('Content-Type: application/pdf',);
|
||||
$dir = $year."/";
|
||||
$filename = $file;
|
||||
if(Storage::disk('fewo_infos')->exists( $dir.$filename )){
|
||||
$path = Storage::disk('fewo_infos')->path($dir.$filename);
|
||||
}
|
||||
|
|
@ -286,28 +285,26 @@ Route::group(['middleware' => ['superadmin']], function() {
|
|||
});
|
||||
|
||||
|
||||
|
||||
/*
|
||||
use App\Mail\MailResetPassword;
|
||||
|
||||
Route::get('/send_test_email', function(){
|
||||
try {
|
||||
//Mail::to('kevin.adametz@me.com')->send(new MailResetPassword('asdasd', Auth::user()));
|
||||
$mail_bbc = config('mail.mail_bbc');
|
||||
// Mail::to('info@adametz.media')->bcc(['k.adametz@kagado.de', 'kevin.adametz@me.com'])->send(new MailResetPassword('asdasd', Auth::user()));
|
||||
|
||||
Mail::raw('Sending emails with Mailgun and Laravel is easy!', function($message) {
|
||||
//Mail::to('kevin.adametz@me.com')->send(new MailResetPassword('asdasd', Auth::user()));
|
||||
|
||||
Mail::raw('Sending emails with Mailgun and Laravel is easy!', function($message) {
|
||||
$message->to('kevin.adametz@me.com', 'Kevin Adametz');
|
||||
$message->subject('testing Networktrips');
|
||||
});
|
||||
|
||||
|
||||
|
||||
} catch (\Exception $e) {
|
||||
dd($e->getMessage());
|
||||
}
|
||||
|
||||
|
||||
$fail = Mail::failures();
|
||||
dd($fail);
|
||||
|
||||
if(!empty($fail)) throw new \Exception('Could not send message to '.$fail[0]);
|
||||
|
||||
});
|
||||
*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue