sudo apt update
sudo apt upgrade
//sudo apt show php
//sudo apt-cache depends php
//sudo apt-cache policy php7.2-cli
sudo apt install php
CREATE AN APP | |
1.a | |
laravel new APPNAME | |
1.b: or: | |
composer create-project laravel/laravel APPNAME | |
cmd: | |
cd name-of-your-project | |
php artisan -v |
Login as root first: | |
$ sudo mysql -u root | |
Then CREATE or ALTER a non-root user (use '127.0.0.1' instead of 'localhost' if needed): | |
CREATE USER 'admin'@'localhost' IDENTIFIED BY 'adminspassword'; | |
GRANT ALL PRIVILEGES ON *.* TO 'admin'@'localhost'; | |
FLUSH PRIVILEGES; | |
Exit and restart: |
Use apt to uninstall and remove all MySQL packages: | |
$ sudo apt-get remove --purge mysql-server mysql-client mysql-common -y | |
$ sudo apt-get autoremove -y | |
$ sudo apt-get autoclean | |
Remove the MySQL folder: | |
$ rm -rf /etc/mysql |
Alone in html5 file | |
In a html file add a CDN link.: | |
https://vuejs.org/v2/guide/installation.html#CDN | |
For prototyping or learning purposes, you can use the latest version with: | |
In the head section of the html. If I put at the bottom of the body, it doesn't work. | |
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> | |
For production, we recommend linking to a specific version number and build to avoid unexpected breakage from newer versions: |
DB::listen(function ($query) { | |
var_dump($query->sql, $query->bindings); | |
}); | |
---- | |
source: | |
https://stackoverflow.com/questions/27753868/how-to-get-the-query-executed-in-laravel-5-dbgetquerylog-returning-empty-ar | |
You will need to enable the query log by calling: |
Source is: | |
https://computingforgeeks.com/how-to-install-php-7-3-php-7-3-fpm-on-linux-mint-19/ | |
sudo apt update | |
sudo apt upgrade | |
sudo add-apt-repository ppa:ondrej/php | |
sudo apt update | |
--- |
let month = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; | |
let monthLong = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', | |
'December']; |