Posts

Showing posts from June, 2023

Reactjs Interview Question

 1. What is JavaScript Call Back ? Sol:  A  Call Back is Function Passed as an argument to another                     Function.  2. What is Promises in JavaScript ? Sol: Promises were introduced in the ES6 version in 2015. It Contain    Producing Code and Consuming Code . 3. What is Difference Let and Var ? Sol: (a) Let is a Block scope and Var is Function Scope.         (b) Let does  not allowed Redeclared variables and             Var allows to Redeclared variables.        (c)Let is Featured of Es6 and Var is ECMAScript1 Feature.        (d)Hoisting is not allowed in Let  and Hoisting is allowed in                    Var. 4. What is a closure in java script ? sol: Closure is a inner function that can access the outer function variables as well ...

React js max link

 https://github.com/academind/react-complete-guide-code/tree/03-react-basics-working-with-components/code

laravel multi auth for user login and admin

Link ::  https://www.ittrainingonline.co.in/example/laravel/81

curd in react js link

 https://www.geeksforgeeks.org/how-to-do-crud-operations-in-reactjs/

Make project in laravel series 1.

https://www.cgca.gov.in/ccarj/form16Download  Make a project      1. composer create-project laravel/laravel Project_name     2. composer require laravel/ui      3. Make database and connect to env     4. Make auth         php artisan ui:auth     5.php artisan migrate     6.Download Template       https://bootstrapmade.com/company-free-html-bootstrap-template/download/     7.Make route for view and make index.blade.php      8.paste assets and forms  in public folder.     9.copy index.html page data and paste index.blade.php     10.run http://127.0.0.1:8000/      11. Last file ko rollback karna     php artisan migrate:rollback 12. ALL TABLE WILL REMOVE.     php artisan migrate:reset 13. Rollback and migrate all tables      php artisan migrate:refresh 14. Make a project  ...

Join in laravel.

 <?php $data = DB::table('users')         ->join('contacts', 'users.id', '=', 'contacts.user_id')         ->join('orders', 'users.id', '=', 'orders.user_id' )         ->select('users.id','contacts.name','orders.price')         ->get(); ?>