Skip to content

write

Writing about interests; Web, Dev, SEO, Marketing and more!
Menu
  • Home
  • Contact
August 28, 2023

How to split your Laravel routes into directories

How to split Laravel routes into directories or subfolders for more organisation and to keep the route files smaller. In this example the Article API routes are placed into their…

August 23, 2023

In Laravel what does the isDirty method do?

In Laravel the isDirty method can be used to examine the state of your model and its data to determine if changes have been made and need updating. isDirty will…

August 22, 2023

Prevent search engine indexing with a simple HTML meta tag

Preventing a page from being indexed by search engines has never been easier, all it takes is a meta tag in the head section of the page. Prevent all search…

August 21, 2023

Generating a sitemap from a PHP PDO select query

A quick and easy method to generate a sitemap file from a PHP PDO select query with a foreach loop to add each URL into the sitemap.xml This is all…

August 14, 2023

Cloning an NVMe to SK Hynix Platinum P41 NVMe

I recently needed to clone over a smaller NVMe to a 2TB SK Hynix Platinum P41 NVMe, however I ran into the issue where it was not bootable. The fix…

August 10, 2023

Redirect URL to previous route in Laravel

To return back to the previous route in Laravel simply just use the back() method: return back(); back() will create a new redirect response. You can of course return back…

August 9, 2023

A quick method to have custom validation messages with Laravel

A quick method in Laravel to provide custom validation error messages. This generally isn’t needed however if you want to provide more context to the validation fails you can utilize…

August 8, 2023

Laravel redirect on a missing model resource instead of 404

When a model resource is not found in Laravel you get an HTTP 404 not found, however you can also do other actions such as a redirect. Using the missing()…

August 7, 2023

Laravel change where users are redirect to after login

Changing the redirect location for when users login in Laravel. You can find this value at the below location app/providers/RouteServiceProvider.php Edit the HOME const to where you want the authenticated…

August 4, 2023

Bypass a global scope in a Laravel Eloquent query

How to easily bypass or exclude a global scope on a Laravel model. Remove a registered global scope by using withoutGlobalScope() in your eloquent query with the parameter being the…

Posts pagination

« Previous 1 2 3 … 116 Next »

Categories

Analytics Business Computing Consumer Creative Development Fitness Gaming Managment Marketing News Photography Random SEO Sport Technology Travel Uncategorized Web Design

Tags

a6500 API App Apple Blog Bootstrap Chart Computing CSS Dev Digital Marketing Drone FFmpeg Hosting How to HTML Internet IOS jQuery JS Lake Eppalock Laravel Linux Marketing Mavic Air 2 Media MYSQL nba Online Store Photography PHP Product development Server Small Business Social Media Sony alpha Ubuntu Video VPS Vultr Web Web design Web Dev Windows server YouTube