namespace App\Http\Requests\Admin\Users;
use Illuminate\Foundation\Http\FormRequest;
class CreateRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'name' => 'required|string|max:255',
'email' => [
'required',
'email',
'string',
Rule::unique('users')->ignore($user->id),
],
];
}
}
sudo docker-compose up
docker info
service docker restart
journalctl -xe
sudo apt-get update;
sudo apt-get -y upgrade;
sudo apt install curl;
sudo apt install -y git;
git config --global user.name 'EVOSandru6';
git config --global user.email 'evosduple@mail.ru';
git config --global alias.co checkout;
git config --global alias.ci commit;
git config --global alias.st status;
git config --global alias.br branch;
git config --global alias.hist "log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short";
git config --global alias.type 'cat-file -t';
git config --global alias.dump 'cat-file -p';
git config --global alias.stash-unapply '!git stash show -p | git apply -R';
#cd ~/.ssh;
mkdir /root/.ssh;
cd /root/.ssh;
eval `ssh-agent -s`;
ssh-keygen -t rsa -C "evosduple@mail.ru" -f "id_rsa_gh";
ssh-keygen -t rsa -C "evosduple@mail.ru" -f "id_rsa_bb";
# sudo nano config;
touch config;
echo "#Github (default)" >> config;
echo "Host gh" >> config;
echo "HostName github.com" >> config;
echo "User git" >> config;
echo "IdentityFile /root/.ssh/id_rsa_gh" >> config;
echo "" >> config;
echo "#Bitbucket (secondary)" >> config;
echo "Host bb" >> config;
echo "HostName bitbucket.org" >> config;
echo "User git" >> config;
echo "IdentityFile /root/.ssh/id_rsa_bb" >> config;
ssh-add /root/.ssh/id_rsa_gh;
ssh-add /root/.ssh/id_rsa_bb;
# cat /root/.ssh/id_rsa_bb.pub
ssh -T gh;
ssh -T bb;
ssh-add -l;
cd /var/www;
git clone git@bb:EVOSandru6/kpr-crm.git domen;
cd domen;
sudo rm /usr/local/bin/docker-compose;
sudo apt-get purge -y docker-compose;
sudo apt-get autoremove -y --purge docker-compose;
dpkg -l | grep -i docker;
sudo apt-get purge -y docker-engine docker docker.io docker-ce;
sudo apt-get autoremove -y --purge docker-engine docker docker.io docker-ce;
sudo rm -rf /var/lib/docker;
sudo rm /etc/apparmor.d/docker;
sudo groupdel docker;
sudo rm -rf /var/run/docker.sock;
dpkg -l | grep -i docker;
sudo apt-get update;
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common;
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -;
sudo apt-key fingerprint 0EBFCD88;
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt-get update;
sudo apt-get install -y docker-ce;
sudo curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
sudo docker run hello-world;
sudo docker-compose up
sudo usermod -aG docker ${USER}
docker info
service docker restart
journalctl -xe