I'm trying to send an email when user submits a form in laravel. So in my Controller I have :
Mail::to($request->to)->send(new \App\Mail\ShareEbol());
And in my ShareEBOL class, in build method I have:
public function build()
{
return $this->markdown('panel.reports.ebol');
}
And in my ebol.blade.php file I have:
@extends('layouts.app')
@section('content')
<h2 class="my-custom-header"> Hello World </h2>
<p class="my-custom-paragraph"> some text... </p>
@endsection
And in my layouts.app blade file I have appended some stylesheets :
<link href="{{asset('assets/css/custom.css')}}" rel="stylesheet" type="text/css" />
Email is sent successfuly, but the problem is css styles that I have included in custom.css are not applied in email. How can I fix this?