The request()
helper function can be used to fetch data from any GET
or POST
request. In this episode, we'll learn how to fetch data from the query-string, pass it to a view, and then encode it to protected against potential XSS attacks.
app/Models
directory. This means an App\Post
namespace should now be App\Models\Post
.