April 2023

Fixing SSH key: [email protected]: Permission denied (public key) with GitHub

Last Updated on April 22, 2023 by Moh Once your SSH key has been generated on the server, you should add it to the SSH agent: $ eval “$(ssh-agent -s)” > Agent pid 59566 $ ssh-add ~/.ssh/yourKeyName SSH-agent is a program that manages SSH keys for secure authentication when logging into remote servers. When you

Fixing SSH key: [email protected]: Permission denied (public key) with GitHub Read More »

How to make role “admin” using Sanctum

Last Updated on April 13, 2023 by Moh To implement role-based authorization in Laravel Sanctum, you can use a combination of Sanctum’s token abilities feature and Laravel’s gates and policies. Here are the basic steps to implement role-based authorization using Sanctum:   Define your roles and abilities: Define the roles and abilities that your application

How to make role “admin” using Sanctum Read More »

Inserting Multiple Rows into a Database Table with PDO and Retrieving IDs of Inserted Rows

Last Updated on April 24, 2023 by Moh Inserting Multiple Rows into a Database Table with PDO and Retrieving IDs of Inserted Rows It is possible to insert multiple rows into a database table with a single query using PDO, but you won’t be able to retrieve the IDs of all inserted rows with a

Inserting Multiple Rows into a Database Table with PDO and Retrieving IDs of Inserted Rows Read More »