~Mauricio
~Mauricio
FFilament
Created by yohanan on 10/6/2024 in #❓┊help
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
FFilament
Created by yohanan on 10/6/2024 in #❓┊help
deploying laravel filament app on local machine issues
Hopefully that helps my friend!
47 replies
FFilament
Created by yohanan on 10/6/2024 in #❓┊help
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
FFilament
Created by yohanan on 10/6/2024 in #❓┊help
deploying laravel filament app on local machine issues
You can even set ut up so the console/terminal doesnt show on the machine, it just runs on the background
47 replies
FFilament
Created by yohanan on 10/6/2024 in #❓┊help
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
FFilament
Created by yohanan on 10/6/2024 in #❓┊help
deploying laravel filament app on local machine issues
thats easy to solve, you can script the command in a simple BAT/CMD file and add into you task scheduler/startup folder/run in registry my friend 😄
47 replies
FFilament
Created by yohanan on 10/6/2024 in #❓┊help
deploying laravel filament app on local machine issues
so it keeps running the 'php artisan schedule:work' and queue
47 replies
FFilament
Created by yohanan on 10/6/2024 in #❓┊help
deploying laravel filament app on local machine issues
now, in the linux world, you do have cron, but usually , even in the docs, we suggest to use a tool called supervisor
47 replies
FFilament
Created by yohanan on 10/6/2024 in #❓┊help
deploying laravel filament app on local machine issues
i guess you could use Task Scheduler and set up to run an artisan command
47 replies
FFilament
Created by yohanan on 10/6/2024 in #❓┊help
deploying laravel filament app on local machine issues
so if in windows , herd is running ok, then all you need to do is open a terminal and keep those command running
47 replies
FFilament
Created by yohanan on 10/6/2024 in #❓┊help
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 tasks
47 replies
FFilament
Created by yohanan on 10/6/2024 in #❓┊help
deploying laravel filament app on local machine issues
you need to just change its config for virtualhosts
47 replies
FFilament
Created by yohanan on 10/6/2024 in #❓┊help
deploying laravel filament app on local machine issues
Great you are using apache
47 replies
FFilament
Created by yohanan on 10/6/2024 in #❓┊help
deploying laravel filament app on local machine issues
Please, detail your current setup
47 replies
FFilament
Created by yohanan on 10/6/2024 in #❓┊help
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
FFilament
Created by yohanan on 10/6/2024 in #❓┊help
deploying laravel filament app on local machine issues
Gives us detail about your setup and we may guide ya in the proper direction.
47 replies
FFilament
Created by yohanan on 10/6/2024 in #❓┊help
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
FFilament
Created by yohanan on 10/6/2024 in #❓┊help
deploying laravel filament app on local machine issues
since you must have to use a windows machine, what about just installing WSL? or a simple VM running Linux?? get a penguin 🐧 virtualization under windows and be happy my friend 😄
47 replies
FFilament
Created by yohanan on 10/6/2024 in #❓┊help
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
FFilament
Created by Rome on 5/13/2024 in #❓┊help
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