Fundamental Tutorials of Laravel

What is Laravel? Laravel is a free and open-source PHP web framework, created by Taylor Otwell and intended for the development of web applications following the model–view–controller (MVC) architectural pattern and based on Symfony. Some of the features of Laravel are: What is top use cases of Laravel? Laravel is a popular PHP framework that can be used to develop a wide variety of web applications. Here are some of the top use cases of Laravel: What are the features

Read more

Argument 1 passed to Illuminate\Auth\SessionGuard::login() must implement interface Illuminate\Contracts\Auth\Authenticatable, null given, called in. Solved !

This usually occurs when using of Laravel Socialite for authentication Socialite In addition to typical, form based authentication, Laravel also provides a simple, convenient way to authenticate with OAuth providers using Laravel Socialite. Socialite currently supports authentication with Facebook, Twitter, LinkedIn, Google, GitHub, GitLab, and Bitbucket. Error Argument 1 passed to Illuminate\Auth\SessionGuard::login() must implement interface Illuminate\Contracts\Auth\Authenticatable, null given, called in C:\xampp\htdocs\WrokSpace\professional\vendor\laravel\framework\src\Illuminate\Auth\AuthManager.php on line 297 Solution Just delete the social provider assigned to that user id from your database table and that’s

Read more

Laravel Permissions to set on Storage folder on Linux.

When we Setup laravel project on linux server then we have to give permissions to all folder’s, sub-folder’s and files in laravel Storage folder. So, i’m providing the list of permission which you have to set in storage folder. I’m providing this list because we can’t set 777 permission to all folders, if we do then it’s may be a security concern. So i’m providing a complete list of each folder’s and sub-folder’s permissions. storage – 755. storage/app – 755.storage/app/public

Read more

Deploy a Laravel project to ubuntu server using git

Steps to create project in local machine Step :1 Create a folder anywhere in your local computer with any name (Mine is workspace) Step:2 Make sure git and gitbash is installed in your local machine if not download it from here Step:3 Login into your GitHub account and create a repository Step 4: Clone the repository into your local machine get inside your repository Copy the URL under HTTPS area There are many more ways to clone a repo but

Read more

Laravel : Regex Validation For Password

Minimum eight characters, at least one letter and one number: Minimum eight characters, at least one letter, one number and one special character: Minimum eight characters, at least one uppercase letter, one lowercase letter and one number: Minimum eight characters, at least one uppercase letter, one lowercase letter, one number and one special character: Minimum eight and maximum 10 characters, at least one uppercase letter, one lowercase letter, one number and one special character:

Read more

Permissions required to make a Laravel project up and running in ubuntu (Linux)

Before moving further, hope you have already installed xampp and composer in your machine.if not follow the below blog to do so. First permission: As you know the first thing our browser needs to run a Laravel project is, the index file which is located in the public folder so we need to make it read and writable so that our browser can access it and if required can modify it. Run the below command to grant access to the

Read more

Install a Laravel project inside htdocs folder in ubuntu

I was moving a Laravel project to a ubuntu virtual machine.Steps that I followed: 1. Installed Xampp 2. Another thing which is required is Composer 3. Now the thing is when we try to install Laravel project inside our htdocs folder it through an error 4. To resolve this error first create a folder inside your htdocs. 5 grant read and write permissions to this folder by running this commands 6. You may get another error while installing is (“mbstring”

Read more

Install composer using CLI in ubuntu (Globally)

Steps For Installing PHP Composer on Ubuntu STEP 1: Update You distribution Enter this command to update the local repository lists. STEP 2: Download the Composer Installer run the below command in your root directory (We are installing composer globally) Step 3: Verify Integrity of the Download 1. Visit the Composer Public Keys page. Copy the Installer Signature (SHA-384).2. Set the code shell variable: COMPOSER=48e3236262b34d30969dca3c37281b3b4bbe3221bda826ac6a9a62d6444cdb0dcd0615698a5cbe587c3f0fe57a54d8f53. Run the script below to compare the official hash against the one you downloaded: Step 4: Install

Read more