A simple guide to queuing mail in Laravel

A queue allows you to defer the processing of tasks like sending e-mails or firing API requests until you’re ready to deal with them. In practice, you can queue anything you like; but it’s primarily designed for anything that would either bring your server to a crawl if you were to do all processing at once or where rate-limiting would otherwise take effect.


How to disable CSRF Token in Laravel (Development – PostMan test)

You can disable it in app/http/Kernel.php in the web-Middleware group.

‘web’ => [
// \Illuminate\Session\Middleware\AuthenticateSession::class,



Laravel – RESTful Resource controller

A RESTful resource controller sets up some default routes for you and even names them.

Route::resource('users', 'UsersController');

Gives you these named routes:

Verb          Path                        Action  Route Name
GET           /users                      index   users.index
GET           /users/create               create  users.create
POST          /users                      store   users.store
GET           /users/{user}               show    users.show
GET           /users/{user}/edit          edit    users.edit
PUT|PATCH     /users/{user}               update  users.update
DELETE        /users/{user}               destroy users.destroy

And you would set up your controller something like this (actions = methods)

class UsersController extends BaseController {

    public function index() {}

    public function show($id) {}

    public function store() {}