PHP extension ext-dom
//First of all, read the warning! It says do not run composer as root! Secondly, you're probably using Xammp on your local which has the required php libraries as default.
// But in your server you're missing ext-dom. php-xml has all the related packages you need. So, you can simply install it by running:
sudo apt-get update
sudo apt install php-xml
//Most likely you are missing mbstring too. If you get the error, install this package as well with:
sudo apt-get install php-mbstring
//Then run:
composer update
composer require cviebrock/eloquent-sluggablesudo apt-get install php-xml
Also in PHP:
- create new laravel project composer
- $dbConnection = new PDO($dsn, $user, $pass);
- date format Ymd php
- ctrl + d in vscode in phpstorm
- create laravel project specific version
- check if string contains word php
- contains string oho
- autoload file laravel
- artisan run seeder
- console log retireve the value send to php
- 32 byte random string php
- create a directory using php
- case php try catch
- associative array reverse php
- file_get_contents base64 php
- char exists in string php
- create migration model and seeder laravel
- date formats in php
- does include reload the page php
- add hour minute in datetime in php
- dateformat j/m/a php
- base64_decode($str header: location
- acf repeater example count
- composer-php version check