Skip to content

write

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

Tag: PHP

PHP backend web language

May 8, 2023

Using Laravel’s deleteDirectory to delete folders and their contents

If you ever needed a simple solution in Laravel to delete an entire directory and its contents the File facade has the answer. deleteDirectory() will delete everything, both files and…

May 3, 2023

How to allow only 1 user to register in a Laravel application

How to enforce only one user to register or be registered in a Laravel web application is very simple to implement. Find your registered user controller most likely at App\Http\Controllers\Auth\RegisteredUserController.php…

March 15, 2023

Laravel Eloquent query builder date and time based queries

Using The Laravel Eloquent query builder to fetch and filter records based on their date and time. Here are examples for when you need to retrieve records that are older…

March 8, 2023

Using the private disk file storage in Laravel

Using the private disk file storage in Laravel to store, delete and download files. Creating the private disk, a private disk is one that is not designed to be used…

March 7, 2023

How to create and use a custom log file in Laravel

Creating and using a custom log file in Laravel, this can help you have a more direct approach to debugging and understanding you application Open the config/logging.php file and in…

March 6, 2023

How to get upload speed from a file upload in Laravel

A neat concept to get file upload speed when uploading files from a form in Laravel. This base method will also work when uploading to an SFTP server using PHP…

March 3, 2023

Hooking into Laravel eloquent events with booted

If you ever need to do an action every time a resource is created or updated or even deleted in Laravel you will need to use the booted method. In…

March 2, 2023

Creating and using Laravel policies

A policy in Laravel ensures you have authorization logic around a resource and its CRUD actions. The best example of this is assigning all resources a user id and only…

March 1, 2023

Creating and running jobs and worker queues in Laravel 10

Laravel jobs and worker queues are for doing tasks that are too long or intensive to do during a typical web request such as processing or parsing an uploaded file….

January 9, 2023

The Laravel updateOrCreate method

In Laravel the updateOrCreate() method is used when you want to perform an UPSERT which is to “UPDATE if key/s exists else do an INSERT”. The method consists of 2…

Posts navigation

1 2 … 24 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