laravel 5.6 show last executed query — May 20, 2018

laravel 5.6 show last executed query

you need to do it like this

Model::insert(); // replace this with your query

So first we need to enable query logs in laravel.

laravel install doctrine/dbal —

laravel install doctrine/dbal

in laravel migration if you want to modify table columns like change column datatype or allow null values we need to install ‘doctrine/dbal’.

composer require doctrine/dbal
Git update local list of remote branches — May 19, 2018
Laravel 5.6 reset user password manually — May 5, 2018
wordpress Because your install is not new, the sites in your WordPress network must use sub-domains — April 30, 2018
ubuntu Nginx enable and disable vhost file —

ubuntu Nginx enable and disable vhost file

Enable a vhost file:- We can do this by creating symbolic links from these files to the sites-enabled directory, which Nginx reads from during startup.
We can create these links by typing:

sudo ln -s /etc/nginx/sites-available/ /etc/nginx/sites-enabled/

and restart nginx.

Disable a vhost file:-remove file from /etc/nginx/sites-enabled/

and restart nginx.

Before restarting nginx you can always check if the configuration files has any error in it, You can do it with this command.

sudo nginx -t

For better explanation read this link.

Ubuntu command to empty file —