Create Auth URL
Go to the config/database.php update
1 2 |
'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', |
Install and Configure Laravel with Passport
First we install and configure laravel app with passport then next we install the open api l5 swagger for api documentations.
Step 1: Install Laravel App
First create a new Laravel application using the following mentioned command.
1 |
composer create-project --prefer-dist laravel/laravel blog |
Step your database credentials in your env file.
1 2 3 4 5 6 |
DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=laravel9 DB_USERNAME=root DB_PASSW... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
//... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
// service downloadFile(id: number): Observable<Blob>{ return this.http.get(`downloadurl` + id,{ responseType: 'blob' }); } //import in top of ts file import { saveAs } from 'file-saver'; // compoment ... |
1 |
echo getHostByName(php_uname('n')); |
1 2 3 4 5 6 7 |
You'll need to use DB::raw(), perhaps something like Invite::where(DB::raw('BINARY `token`'), $token)->first(); or alternatively: Invite::whereRaw("BINARY `token`= ?",[$token])->first(); |
Html
1 2 3 4 5 6 7 8 9 10 11 12 |
<!DOCTYPE html> <html> <body> <form method="post" enctype="multipart/form-data"> Select image to upload: <input type="file" name="filedata"> <input type="submit" value="Upload Image" name="submit"> </form> </body> </html> |
PHP