Login CakePHP 4 script

CakePHP 4 , login biasanya menggunakan Authentication plugin . Berikut alurnya: 1. Install Authentication Plugin Jalankan di terminal: composer require cakephp/authentication 2. Load Plugin di Application.php Di file src/Application.php , tambahkan: $this->addPlugin('Authentication'); 3. Middleware Authentication Masih di Application.php , tambahkan ke middleware() : use Authentication\Middleware\AuthenticationMiddleware; $middlewareQueue->add(new AuthenticationMiddleware($this)); 4. Konfigurasi Authentication Di src/Application.php , dalam method getAuthenticationService() : use Authentication\AuthenticationService; use Authentication\AuthenticationServiceInterface; use Authentication\Identifier\IdentifierInterface; use Authentication\Middleware\AuthenticationMiddleware; use Psr\Http\Message\ServerRequestInterface; public function getAuthenticationService(ServerRequestInterface $request): AuthenticationServiceInterface { $service = new Authenticatio...

How create a passport size in adobe photoshop cc

To create a passport size photo in Adobe Photoshop CC, you can follow these steps:

1. Open Adobe Photoshop CC and create a new document by going to File > New. Set the width to 2 inches and the height to 2.5 inches. Set the resolution to 300 pixels per inch and the color mode to RGB color.

2. Import the photo you want to use for the passport size. You can do this by going to File > Place and selecting the photo file.

3. Use the crop tool (shortcut key: C) to crop the photo to the required size. In this case, you will need to crop the photo to a square shape with dimensions of 2 inches by 2 inches. Make sure to position the face within the square.

4. Next, go to Image > Image Size and make sure that the resolution is still set to 300 pixels per inch. If not, change it to 300 pixels per inch.

5. Save the file by going to File > Save As and selecting the file format that you want. It is recommended to save the file as a JPEG or PNG format to ensure compatibility with printing and online usage.

That's it! You now have a passport size photo ready for printing or use.



 

Comments