Laravel Scout is a package that enables full-text search in Laravel, allowing you to play with a variety of full-text search providers such as Algolia and Elasticsearch.
On the Laravel side, whenever the $request->ajax() is false, the same route will always capture the request. So, we can safely define a catch-all route to redirect such traffic to the index() method of our resource controller:
So far we can create and read mailing lists. Today, we will add the Update and Delete functionalities and wire up our mailing list application as a complete CRUD app. If you just want to see the code, here it is on the Github.
The objective here is to ensure the created_at and updated_at times are displayed relative to the time on the device the user is viewing the application on. This is as opposed to the server time - which by default, we have set to UTC in our server side config
When the user clicks on a page number in the pagination, the application will call the fetchMLists() method after updating the scope values for the pagination. The fetchMLists() method will always use current page number and records per page parameters (which are initalised in the data function) when querying Laravel. These values are updated dynamically and so everything is wired nicely. When Laravel responds, it also sets the pagination data accordingly.
Let us see if we can create a Laravel 5.3 + Vue.Js newsletter application step by step over the next few weeks. The end goal is to able to send newsletters to a list of email subscribers and then collect and display stats, abstracting a mainstream email API (such as Mailgun/SparkPost).
The user can now authenticate using either their email address or username and must also be active to go through.