Showing 7 of 1,975 result(s)
…r to change the HTTP status code for the request. By default, the code is 302 ("Found"), but could easily be changed to 301 ("Moved Permanently"). Specific headers can also be set by providing an argument for the $headers parameter. There is an...
In order to supply extra headers we must also provide an argument for $status and then supply an argument for $headers : The following image shows the results of a request that contains the request headers. You can see that the Laravel header is...
…$message .The signature of the abort function is:The following example assumes that some $user object exists with the property admin . The example will check to make sure that the admin property is true . If not, the code will abort with a 401...
The getFormat is the logical opposite of the setFormat method. It simply returns the current format that is being used by the MessageBag instance.The signature of the getFormat method is: public function getFormat();The following examples...
The getMessageBag method returns a reference to the MessageBag instance. It exists to satisfy the requirements of the "Illuminate\Contracts\Support\MessageProvider" interface.The signature of the getMessageBag method is: public function...
Search Report for Statamic is a simple Control Panel and utility addon that allows you to log searches made on your site, and view them within Statamic's Control Panel. Search Report for Statamic Documentation, Search Report for Statamic GitHub,...
…points static object contains the API endpoints that you can submit to from your site. The default endpoints are: Endpoint Description SubmitComment The API endpoint to POST comment replies to. You might use the endpoints like so (the following...