Complete BLoC with Clean Architecture (group chat) Discount !! E-commerce App With Backend Source Code Video and Voice Chatting App Firebase Chatting App Source Code Complete Gym App BLoC State Management Source Code Complete Study App Buy Ticket Booking App Source Code Buy Travel App With Backend Source Code Complete Chat App Udemy Course Special Offer Discount !! Online Learning Course App (BLoC) Online Learning Course App (Riverpod) Online Learning Course App (Getx) Discount !! Shopping App (Provider) Cool Flutter Game Flutter Nodejs Chat App Flutter Nodejs Api And Firebase Chat App Riverpod Task Management App
I wanted to upload longer videos from my Laravel backend, but looks like I could not. I got issues like below
At first it looks like Laravel issue but it's actually issue in the php.ini file. We need to change it.
Find the file
On the terminal run this
php --ini
and you will see the location.
So it would give you the path of php ini on your machine. It's the second line where file locates.
Open the file
Now you need to open the file, you may use vim editor to do it. Do
vim /usr/local/etc/php/8.2/php.ini
Make sure you have the correct path. Then you need to look for two lines
post_max_size = 1024M
upload_max_filesize = 1024M
Do look for them you may a special command and hit enter
/^post
You should be able to find post_max_size. If you can not find yet click keyboard letter n and it would go to the next match.
Once you find it, hit i in the keyboard to edit and change as you need.
You should look for the next change using the same command.
Once you make the changes do
esc button press and then :wq
It would save the changes.
Install FPM
After that you need to restart your php service. To restart make sure you have PHP-FPM. If not make sure you run
brew tap homebrew/services
It will install the necessary services.
And then run the below command to make changes effective
brew services restart php@8.2
After that you will find