With great powers comes great responsibility, changing .env values in the server
were great but if you don't have access to it this code might come in handy.
In your route, where key is the key, and value will be the new env value
Route::get('changeenv/{key?}/{value?}',"controller@methodname");
In your controller
public function changeEnv($key, $value)
{
$path = app()->environmentFilePath();
...
Wednesday, 9 February 2022
Tuesday, 8 February 2022
Laravel SMTP Settings for Different Mail Service Provider
Laravel SMTP Settings for Different Mail Service Provider
MAILHOG
brew update && brew install mailhog
For Laravel .env
MAIL_DRIVER=smtp
MAIL_HOST=0.0.0.0
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
Run in Terminal
mailhog
Testing Email
Open this link Mailhog UIJust continue sending em...
Monday, 7 February 2022
Makefile miscellaneous commands
Some miscellaneous commands for makefile
This command will cd to a page and run command inside the page, if successful succeeding commands will be called.
build:adminx font js
js:
npm run build
font:
npm run gulp iconfont
adminx:
cd admin; npm run build
...