You may need to configure a proxy server if you're having trouble cloning
or fetching from a remote repository or getting an error
like unable to access '...' Couldn't resolve host '...'.
Consider something like:
| #!/bin/bash | |
| #ubuntu 20.04 | |
| #php8.1 | |
| # install php ppa | |
| apt -y install software-properties-common | |
| add-apt-repository ppa:ondrej/php -y | |
| apt update |
| SELECT | |
| * | |
| FROM | |
| messages, | |
| ( | |
| SELECT | |
| MAX(id) as lastid | |
| FROM | |
| messages | |
| WHERE |
| CREATE TABLE users ( | |
| id INT AUTO_INCREMENT PRIMARY KEY, | |
| username VARCHAR(255) NOT NULL UNIQUE, | |
| password VARCHAR(255) NOT NULL | |
| ); | |
| CREATE TABLE conversations ( | |
| id INT AUTO_INCREMENT PRIMARY KEY, | |
| name VARCHAR(255) NOT NULL, | |
| created_at DATETIME DEFAULT CURRENT_TIMESTAMP |
| <?php | |
| namespace App\Exceptions; | |
| use App\Traits\RespondsWithHttpStatus; | |
| use Illuminate\Auth\Access\AuthorizationException; | |
| use Illuminate\Database\Eloquent\ModelNotFoundException; | |
| use Illuminate\Database\QueryException; | |
| use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; | |
| use Illuminate\Http\Exceptions\ThrottleRequestsException; |