Moh

Generate temporary signed URL from s3 in Laravel

To create temporary files, you can use temporaryUrl method from the IlluminateSupportFacadeStorage facade. You can use the method on the following syntax. use IlluminateSupportFacadesStorage;$temporarySignedUrl = Storage::disk(‘s3’)->temporaryUrl(“filepath.pdf”, now()->addMinutes(10));   temporaryUrl method accepts two parameters as follows, Path: This parameter accepts the full path of the file in the s3 bucket Expiry Time: You can set the date for the expiry […]

Generate temporary signed URL from s3 in Laravel Read More »

Laravel `.env`, system-level, and server-level environment variables

I was curious about this as well. Here’s your answer: System Level Env Variables: These are set on the actual operating system themselves. For example, in Windows, system level variables can be configured in: Control Panel System Properties Click Environment Variables You will see all the system level variables Windows contains Not sure where env variables

Laravel `.env`, system-level, and server-level environment variables Read More »

What is provisioning?

Provisioning is the process of creating and setting up IT infrastructure, and includes the steps required to manage user and system access to various resources. Provisioning is an early stage in the deployment of servers, applications, network components, storage, edge devices, and more.  Provisioning is not the same thing as configuration management, but they are both

What is provisioning? Read More »

How to solve “Error: MySQL shutdown unexpectedly”?

Solve “Error: MySQL shutdown unexpectedly: Rename folder mysql/data to mysql/data_old Make a copy of mysql/backup folder and name it as mysql/data Copy all your database folders from mysql/data_old into mysql/data (except mysql, performance_schema, and phpmyadmin folders) Copy mysql/data_old/ibdata1 file into mysql/data folder Start MySQL from XAMPP control panel https://stackoverflow.com/questions/18022809/how-to-solve-error-mysql-shutdown-unexpectedly 

How to solve “Error: MySQL shutdown unexpectedly”? Read More »

Monitor logs in Laravel Telescope in production environment

The Laravel Telescope package is great for debugging your application when you’re working on your application in the local environment. It provides insight into the requests coming into your application, exceptions, log entries, database queries, queued jobs, mail, notifications, cache operations, scheduled tasks, variable dumps, and various other things in this beautiful interface. Now all this is great

Monitor logs in Laravel Telescope in production environment Read More »