We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send email using Laravel 9
Docs
Comando:
php artisan make:mail OrderShipped
Exemplo de código:
/** * Build the message. * * @return $this */ public function build() { return $this->from('example@example.com', 'Example') ->view('emails.orders.shipped'); }
<?php namespace App\Http\Controllers; use App\Http\Controllers\Controller; use App\Mail\OrderShipped; use App\Models\Order; use Illuminate\Http\Request; use Illuminate\Support\Facades\Mail; class OrderShipmentController extends Controller { /** * Ship the given order. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function store(Request $request) { $order = Order::findOrFail($request->order_id); // Ship the order... Mail::to($request->user())->send(new OrderShipped($order)); } }
The text was updated successfully, but these errors were encountered:
Jphn
No branches or pull requests
Send email using Laravel 9
Docs
Comando:
Exemplo de código:
The text was updated successfully, but these errors were encountered: