Noelia  Douglas

Noelia Douglas

1626373440

ReactJS Ecom #12: Delete Category| Delete data with DELETE Method in React JS/ Laravel API

In this video, I have taught How to delete data from database using laravel api in reactjs.

Follow us on Instagram: https://www.instagram.com/funda_of_web_it/
Subscribe to my Hindi/Urdu Channel: https://www.youtube.com/fundaofwebithindi

#reactjs #delete #react js api w #laravel api

What is GEEK

Buddha Community

ReactJS Ecom #12: Delete Category| Delete data with DELETE Method in React JS/ Laravel API
Noelia  Douglas

Noelia Douglas

1626373440

ReactJS Ecom #12: Delete Category| Delete data with DELETE Method in React JS/ Laravel API

In this video, I have taught How to delete data from database using laravel api in reactjs.

Follow us on Instagram: https://www.instagram.com/funda_of_web_it/
Subscribe to my Hindi/Urdu Channel: https://www.youtube.com/fundaofwebithindi

#reactjs #delete #react js api w #laravel api

Seamus  Quitzon

Seamus Quitzon

1595201363

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,
 PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci

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.

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Product extends Model
{
    protected $fillable = [
        'name','description'
    ];
}

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.

routes/web.php

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

Autumn  Blick

Autumn Blick

1598839687

How native is React Native? | React Native vs Native App Development

If you are undertaking a mobile app development for your start-up or enterprise, you are likely wondering whether to use React Native. As a popular development framework, React Native helps you to develop near-native mobile apps. However, you are probably also wondering how close you can get to a native app by using React Native. How native is React Native?

In the article, we discuss the similarities between native mobile development and development using React Native. We also touch upon where they differ and how to bridge the gaps. Read on.

A brief introduction to React Native

Let’s briefly set the context first. We will briefly touch upon what React Native is and how it differs from earlier hybrid frameworks.

React Native is a popular JavaScript framework that Facebook has created. You can use this open-source framework to code natively rendering Android and iOS mobile apps. You can use it to develop web apps too.

Facebook has developed React Native based on React, its JavaScript library. The first release of React Native came in March 2015. At the time of writing this article, the latest stable release of React Native is 0.62.0, and it was released in March 2020.

Although relatively new, React Native has acquired a high degree of popularity. The “Stack Overflow Developer Survey 2019” report identifies it as the 8th most loved framework. Facebook, Walmart, and Bloomberg are some of the top companies that use React Native.

The popularity of React Native comes from its advantages. Some of its advantages are as follows:

  • Performance: It delivers optimal performance.
  • Cross-platform development: You can develop both Android and iOS apps with it. The reuse of code expedites development and reduces costs.
  • UI design: React Native enables you to design simple and responsive UI for your mobile app.
  • 3rd party plugins: This framework supports 3rd party plugins.
  • Developer community: A vibrant community of developers support React Native.

Why React Native is fundamentally different from earlier hybrid frameworks

Are you wondering whether React Native is just another of those hybrid frameworks like Ionic or Cordova? It’s not! React Native is fundamentally different from these earlier hybrid frameworks.

React Native is very close to native. Consider the following aspects as described on the React Native website:

  • Access to many native platforms features: The primitives of React Native render to native platform UI. This means that your React Native app will use many native platform APIs as native apps would do.
  • Near-native user experience: React Native provides several native components, and these are platform agnostic.
  • The ease of accessing native APIs: React Native uses a declarative UI paradigm. This enables React Native to interact easily with native platform APIs since React Native wraps existing native code.

Due to these factors, React Native offers many more advantages compared to those earlier hybrid frameworks. We now review them.

#android app #frontend #ios app #mobile app development #benefits of react native #is react native good for mobile app development #native vs #pros and cons of react native #react mobile development #react native development #react native experience #react native framework #react native ios vs android #react native pros and cons #react native vs android #react native vs native #react native vs native performance #react vs native #why react native #why use react native

Noelia  Douglas

Noelia Douglas

1626366000

ReactJS Ecom Part 10: View Category | Fetch data from API with React Hooks in React JS

In this video, I have taught how to fetch or retrieve data from database using react hooks useEffecth with laravel api in React JS.

Follow us on Instagram: https://www.instagram.com/funda_of_web_it/
Subscribe to my Hindi/Urdu Channel: https://www.youtube.com/fundaofwebithindi

#reactjs #reactjs ecom #api #react hooks #react js

Noelia  Douglas

Noelia Douglas

1626377100

ReactJS Ecom #13: Add Product | Insert data with image upload in React JS with Laravel API

In this video, I have taught how to Insert data with image upload in React JS Hooks with Laravel API where we are getting the Category details and adding all the data of input fields with an Image using axios.post to send the data using API of Laravel 8. Form Validation in React JS with Laravel 8 API.

Follow us on Instagram: https://www.instagram.com/funda_of_web_it/
Subscribe to my Hindi/Urdu Channel: https://www.youtube.com/fundaofwebithindi

#reactjs #reactjs ecom #react js hooks #laravel api