// will add this code in web.php page
Route::get("/mail",function(){
Mail::raw("thank you", function($messsage){
$messsage->to("name@gmail.com")->subject("contact with me");
});
});
// will add this code at env file
MAIL_MAILER=log
// to see the result you should go to www.myapp.com/mail then go to laravel.log file you will find the result there
public function boot()
{
User::observe(UserObserver::class);
}
Next, add an Observer class like so:
class UserObserver
{
public function deleting(User $user)
{
$user->photos()->delete();
}
}
- in terminal: brew services start mysql
- alternatively, use DBngin
- open database front-end to create MySQL DB
- Name: dbName
- Host: 127.0.0.1
- Username: root
- Password is empty
- rename wp-config-sample.php to wp-config.php and update db variables
Use this info to complete Wordpress setup
Comments