Harish Kumar

Harish Kumar


Laravel Sanctum vs Passport

โœ” Laravel Passport or Sanctum
โœ” What is OAuth2?
โœ” How OAuth Works?

๐Ÿ”— https://www.youtube.com/watch?v=LE1TC4WS4CY

#laravel #php #laravel-sanctum #laravel-passport #sanctum #laravel 7

What is GEEK

Buddha Community

Laravel Sanctum vs Passport
Harish Kumar

Harish Kumar


Laravel Sanctum vs Passport

โœ” Laravel Passport or Sanctum
โœ” What is OAuth2?
โœ” How OAuth Works?

๐Ÿ”— https://www.youtube.com/watch?v=LE1TC4WS4CY

#laravel #php #laravel-sanctum #laravel-passport #sanctum #laravel 7

Laravel Vs CodeIgniter (Choosing Best PHP Framework In 2021)

This is image title

Do you want to create an outstanding web application? You would need a flexible and scalable framework in terms of architecture. Laravel and CodeIgniter have gained a lot of popularity in the last few years. Both frameworks can use to create robust and high-performance web apps. Laravel powers around 0.37% of the websites while CodeIgniter holds 0.36% of the market share.

This is image title

Laravel, being a popular open-source PHP framework, is widely used for building websites and web applications. As this framework uses the MVC pattern, it provides comfortable and easy development. One gets complete control over the project over the development of applications as external APIs can be implemented. Laravelโ€™s MVC architecture reuses the application logic to create scalable web apps.

On the other hand, CodeIgniter is an object-oriented, event-driven functional framework that helps to create fully-featured web applications. It considers as one of the best frameworks to develop dynamic websites and web apps. As the users do not need to rely on MVC development patterns, it can be integrated with third-party plugins to add complex features to the web app. CodeIgniter is known for its amazing security.

1. Built-In Modules
Laravel allows web developers to break the project into smaller modules through a bundle. They can re-use the models across different projects and save development costs.CodeIgniter does not support built-in modules and the programmers need to create and maintain multiple modules with the help of Modular Extension.

2. Library Usage
Laravel possesses object-oriented libraries that used to add the right features. Laravel libraries are comparatively easier to use than the ones available for CodeIgniter.

Laravel offers RESTful controllers to help the developers create custom REST APIs without writing any additional code. CodeIgniter does not provide such a feature to simplify the development of APIs. CodeIgniter developers may have to write more code as compared to Laravel developers while creating web apps.

4. HTTPS Support
Laravel supports the HTTPS route and helps programmers to make the right decision for creating a specific URL for each HTTPS route. With CodeIgniter development, programmers need to manage URL helpers to enable protection for data transmission.

5. Data Migration
Laravel provides greater support for data migration while CodeIgniter may have limitations and it may be time-consuming to migrate data while using it.database migration
This is image title

6. PHP Version Support
Both Laravel and CodeIgniter frameworks support the latest PHP version i.e. PHP 7.X. The developers and testers may find it easy to build web apps with Laravel as compared to CodeIgniter development.

7. Technical Documentation
When we talk about the technical documentation for both frameworks, CodeIgniter wins the race as it has easy-to-understand documentation. On the other hand, Laravel has tough documentation that may not be easy to understand for all programmers.

Read More

#laravel or codeigniter #laravel vs codeigniter #laravel vs codeigniter performance #php framework laravel vs codeigniter #php laravel vs codeigniter

Seamus  Quitzon

Seamus Quitzon


Php how to delete multiple rows through checkbox using ajax in laravel

First thing, we will need a table and i am creating products table for this example. So run the following query to create table.

CREATE TABLE `products` (
 `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
 `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
 `description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
 `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
 `updated_at` datetime DEFAULT NULL,

Next, we will need to insert some dummy records in this table that will be deleted.

INSERT INTO `products` (`name`, `description`) VALUES

('Test product 1', 'Product description example1'),

('Test product 2', 'Product description example2'),

('Test product 3', 'Product description example3'),

('Test product 4', 'Product description example4'),

('Test product 5', 'Product description example5');

Now we are redy to create a model corresponding to this products table. Here we will create Product model. So letโ€™s create a model file Product.php file under app directory and put the code below.


namespace App;

use Illuminate\Database\Eloquent\Model;

class Product extends Model
    protected $fillable = [

Step 2: Create Route

Now, in this second step we will create some routes to handle the request for this example. So opeen routes/web.php file and copy the routes as given below.


Route::get('product', 'ProductController@index');
Route::delete('product/{id}', ['as'=>'product.destroy','uses'=>'ProductController@destroy']);
Route::delete('delete-multiple-product', ['as'=>'product.multiple-delete','uses'=>'ProductController@deleteMultiple']);

#laravel #delete multiple rows in laravel using ajax #laravel ajax delete #laravel ajax multiple checkbox delete #laravel delete multiple rows #laravel delete records using ajax #laravel multiple checkbox delete rows #laravel multiple delete

Harish Kumar

Harish Kumar


Laravel Sanctum or Passport | What is OAuth?


#laravel #php #passport #laravel-passport #oauth #oauth2

I am Developer


Laravel 8 REST API Authentication with Passport Example Tutorial

Laravel 8 rest api authentication with passport tutorial, you will learn step by step how to create rest API with laravel 8 passport authentication. And as well as how to install and cofigure passport auth in laravel 8 app.

Laravel 8 API Authentication with Passport Tutorial

Step 1: Download Laravel 8 App
Step 2: Database Configuration
Step 3: Install Passport Auth
Step 4: Passport Configuration
Step 5: Run Migration
Step 6: Create APIs Route
Step 7: Create Passport Auth Controller
Step 8: Now Test Laravel REST API in Postman


#laravel api authentication with passport #laravel 8 api authentication #laravel 8 api authentication token tutorial #laravel 8 api authentication using passport #laravel 8 api authentication session