Category Laravel

Fix specified key was too long issue in laravel


Go to the config/database.php update

Install Swagger in Laravel 9

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.

Step your database credentials in your env file.

Case-sensitive where statement in laravel

Laravel 5 with Swagger (GET, POST, PUT, DELETE)

Swagger GET Example

Check Swagger Error

Run this command

Integration Dropbox in PHP

Use this link https://www.dropbox.com/developers/documentation/http/documentation for documentation

Create a function for Curl call

Integration One Drive in PHP

Use this link https://docs.microsoft.com/en-us/onedrive/developer/rest-api/getting-started/graph-oauth?view=odsp-graph-online for documentation

creating a function for curl call

Integration Google Drive in PHP

Install Google APIs Client Library for PHP
for more info check https://github.com/googleapis/google-api-php-client

Authentication

SSL certificate problem: unable to get local issuer certificate

  1. Download this file: http://curl.haxx.se/ca/cacert.pem
  2. Place this file in the C:\wamp64\bin\php\php7.1.9 folder
  3. Open php.iniand find this line:

;curl.cainfo

Change it to:

curl.cainfo = "C:\wamp64\bin\php\php7.1.9\cacert.pem"

Make sure you remove the semicolon at the beginning of the line.

Save changes to php.ini, restart WampServer, and you’re good to go!

If laravel url is not working on server

if laravel url is working like index.php/user but not working in /user