Latest Laravel/PHP Articles

Latest Laravel/PHP Articles curated daily from around the web.


paulund.co.uk

Log Axios Requests
When working with APIs in your Javascript application it can be useful to be able to debug the requests and responses you're using to interact with the API. Axi...

paulund.co.uk

Composer Scripts
In this tutorial we're going to investigate how you can store common commands within composer, giving you some handy shortcuts. https://paulund.co.uk/composer-s...
With Laravel it makes it really easy to test HTTP requests by using the trait MakesHttpRequests. This has all the methods you will need to run HTTP requests fro...
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
With the upgrade to Laravel 6 the helper functions have been deprecated and replaced with using the Arr and Str facades directly https://laravel.com/docs/master...
In this tutorial we're going to learn how to use v-model attribute with custom components to return the values of the custom component back to the parent compon...
LetsEncrypt allows you to install free SSL certificates for your website. Over time LetsEncrypt have upgraded and changed the way it works for security reasons,...
Here is a quick code snippet that will allow you to read the memory usage of files. You can use the command du this will go through the current folder and outpu...
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Below is a helper function you can use to take an array and group by a key. const groupBy = function (data, key) { return data.reduce(function (carry, el) { var...
Recently I had to create a model factory for my tests but I didn't want it to fire the standard Laravel model events. Model events are fired whenever a record i...
Out of the box Laravel always you to have read/write database connections. This will allow you have different database connections for SELECT queries and INSERT...
Here is a quick command you can use to clean up the node_modules on your computer. This will find and remove all folders on your computer named node_modules. Al...
CodeMentor Codementor is an online marketplace connecting developers with experts for on- demand 1:1 help via screen sharing, video, and text chat.
If you're like me you always need to lookup the difference between local storage, session storage and cookies. Stores data with no expiry date Cleared only via...
Laravel has a lot of helper artisan commands, one of them allows you to clear the cache. php artisan cache:clear This command has an optional parameter allowing...
This is a small command line helper to quickly lookup the options and helpers available to different commands. function lookup() { curl cht.sh/$1 } Now...
Blade is a PHP templating framework to use with your Laravel application. The blade templates are compiled down to normal PHP code. We can also extend blade by...