~Mauricio
deploying laravel filament app on local machine issues
If you got it working on the local /client machine, you just need to do some basic networking my friend. I would setup the app serving machine with a static IP wihtin your intranet, and configure its firewall to allow the web service to be accessed by others on the same network, so that people can use http://<machine-ip> to access it..
47 replies
deploying laravel filament app on local machine issues
so if you got Herd working, then just need to get those bat files running the artisan commands for you. In the example above it shows setting for the Queue Work, just change it to fit your needs if all you need it the Scheduler Worker
47 replies
deploying laravel filament app on local machine issues
ChatGPT:
Step 1: Create a Batch File
Open Notepad or any text editor.
Paste the following code into the file:
@echo off
cd C:\xampp\htdocs\your-laravel-app
php artisan queue:work
Replace C:\xampp\htdocs\your-laravel-app with the path to your Laravel application directory.
Save the file with a .bat extension, for example, start_queue_worker.bat.
Make sure to save it somewhere that will not be moved or deleted, like C:\Scripts.
Step 2: Set Up Task Scheduler
Open Task Scheduler:
Press Win + R, type taskschd.msc, and press Enter.
Create a New Task:
Click Action > Create Task.
General Tab:
Name: Enter a name for the task, e.g., Laravel Queue Worker.
Security Options: Choose Run whether user is logged on or not and check Run with highest privileges.
Triggers Tab:
Click New… to create a new trigger.
Begin the task: Choose At startup.
Click OK.
Actions Tab:
Click New… to create a new action.
Action: Select Start a program.
Program/script: Browse and select the .bat file you created (e.g., C:\Scripts\start_queue_worker.bat).
Click OK.
Conditions Tab:
Uncheck Start the task only if the computer is on AC power to make sure it runs even if the PC is not plugged in.
Settings Tab:
Make sure Allow task to be run on demand is checked.
You can also check If the task fails, restart every to automatically restart the task if it fails, and set it to 1 minute for a maximum of 3 attempts.
Click OK to save the task.47 replies
deploying laravel filament app on local machine issues
usually you dont have to setup cron jobs, (in windows we have task scheduler) , with laravel you should keep a running instance of
php artisan schedule:work
for scheduled tasks and a queue work to run async tasks47 replies
deploying laravel filament app on local machine issues
I am no sure you mean by "prepared the app for production'", does that mean you built the assets (npm run build)? could you explain with some more details? that would help 🙂 it would be better. what is the web server software you are using to serve the app in "production'? Xampp? Herd? Artisan serve? Docker? It is in the web serving software that you will configure the location to serve the app as mentioned before.
47 replies
deploying laravel filament app on local machine issues
All right, how are you serving the app? which tool from those above that everyone mentioned you decided to use? you will have to configure that serving tool to serve from the ./public folder and not the root folder as previously mentioned. Maybe then we can help ya. You said "tried first to deploy on linux in /www/html" , but how did you do it?
47 replies
deploying laravel filament app on local machine issues
For Windows, there is Laragon as well, worth a try since you 'xampping' already...https://laragon.org/download/
47 replies
Excel export autofit column width
@awcodes Thank you for your thoughtful feedback! I completely agree that data should always take priority over its presentation. The main idea behind this addition was to enhance flexibility, especially given that the existing methods in the core export action class already allow some customization of headers and cells. By enabling the injection of OpenSpout's writer options directly, I wanted to provide an easy way for users to fine-tune the document’s appearance without relying on external plugins. Nonetheless, I appreciate the review and your perspective! 🚀
22 replies