Category

Laravel

Category

How to Compare Two Dates in Laravel Carbon? eq() equalsne() not equalsgt() greater thangte() greater than or equalslt() less thanlte() less than or equals Laravel Carbon eq() equals <?php namespace App\Http\Controllers; use Carbon\Carbon; class DatesController extends Controller { /** * Write code on Method * * @return response() */ public function index() { $date1 = Carbon::createFromFormat(‘m/d/Y H:i:s’, ’12/01/2020 10:20:00′); $date2 = Carbon::createFromFormat(‘m/d/Y H:i:s’, ’12/01/2020 10:20:00′); $result = $date1->eq($date2); var_dump($result); } } Laravel Carbon ne() not…

https://www.youtube.com/watch?v=JJ5ItTIQYMc In this tutorial, we will learn about how to make a shopping cart in laravel 8. if you creating an eCommerce project then you need to implement in cart functionality. Step 1: Install Laravel 8 composer create-project –prefer-dist laravel/laravel laravel_cart cd laravel_cart Step 2: Connecting App to Database Next step, we will set the database credentials in the application. Let’s open your project .env file and set the database credentials here. DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306…

Laravel 8 Sanctum provides a simple authentication system for SPAs web Application, mobile applications, and simple, token based APIs. Sanctum also allows each user of your application to generate multiple API tokens for their account. We have the Laravel Passport package to do the authentication and OAuth processes. But, if you don’t want to use the OAuth feature that Passport offers, then the Laravel Sanctum may be a choice for you. Step 1: Install Laravel…

In this laravel tutorial, we will learn about how to make file manager in laravel Step 1: Install Laravel 8 composer create-project –prefer-dist laravel/laravel laravel_filemanger cd laravel_filemanger Step 2: Install alexusmai/laravel-file-manager Package In this step, You can install file manager package in this laravel app. So open terminal and put the bellow command. composer require alexusmai/laravel-file-manager after installing successfully, we need to publish configuration file using bellow command: php artisan vendor:publish –tag=fm-config Now they created…

In this laravel tutorial, we will learn about how to upload file in s3 You can follow these steps by step explain to you how to upload images in the s3. you can also upload files in s3 using laravel but in this article, we will upload the images in the s3 using laravel. Step 1: Create S3 Bucket You need to login your AWS account then search s3 from search box and follow bellow…

In this laravel tutorial, we will learn about how to check user online status and last seen. If you need in your application user online status and last seen. At that time, you need to show users status (online/offline) and last seen. So this tutorial will guide you step by step from scratch to implement Laravel determine users status and last seen app. https://www.youtube.com/watch?v=p8__qav-PqA&ab_channel=Realprogrammer Laravel Determine User Online Status in Laravel First of all, you…

Laravel 8 Bootstrap Auth Scaffolding First of all, you need to follow this step. https://www.youtube.com/watch?v=JYL1iXFBAe4 Step 1: Install laravel 8 App Step 2: Database Configuration in .env file Step 3: Install Laravel UI Step 4: Install Bootstrap Auth Scaffolding Step 5: Run PHP artisan Migrate Step 6: Install Npm Packages Step 7: Run Development Server Step 1: Install laravel 8 App We need to run command to create Laravel 8 projects. composer create-project –prefer-dist laravel/laravel…

Laravel 8 Authentication with Breeze in this tutorial, I will show you how we can setup Laravel 8 Authentication with Breeze. Laravel 8 breeze auth is simple and lightweight scaffolding. First of all, you need to follow this step. Step 1: Install laravel 8 App Step 2: Database Configuration in .env file Step 3: Install breeze Auth Scaffolding Step 4: Run PHP artisan Migrate Step 5: Install Npm Packages Step 6: Run Development Server Step…