Laravel : Migration Modifiers & Constraints Tutorial in Hindi / Urdu

Поділитися
Вставка
  • Опубліковано 19 вер 2024
  • In this tutorial you will learn Laravel database migration constraints tutorial in Hindi, Urdu. You can learn how to add constraints to Laravel migration file and how to modify database tables with Laravel migration in Laravel tutorial in Hindi and Urdu.
    ✅ MySQL Tutorial Playlist in Hindi / Urdu
    • 🥇 MySQL Tutorial for B...
    ✅ Laravel Tutorial Playlist in Hindi / Urdu
    • Laravel 11 Tutorial Co...
    ✅ Laravel Projects
    www.yahoobaba....
    ✅ PHP Tutorial Playlist in Hindi / Urdu
    • ✅ PHP Tutorial in Hind...
    ✅ Official Website
    www.yahoobaba.net/
    ✅ Follow us on Facebook
    / yahooobaba
    ✅ Follow us on Twitter
    / yahooobaba
    ✅ Follow us on Instagram
    / yahoo_baba
    #laravel #php #webdevelopment #yahoobaba

КОМЕНТАРІ • 92

  • @harshwadhwani7050
    @harshwadhwani7050 Рік тому +8

    Thank you for your regular uploads on UA-cam! We are all thrilled to see you back, and your videos bring happiness to many people. I understand that being a UA-camr isn't your full-time job, but the fact that you still make time to create videos for us is greatly appreciated. Thank you so much for your efforts and dedication!

  • @dayalchandraroy9587
    @dayalchandraroy9587 10 місяців тому +1

    Very useful Video. I am From Bangladesh. I have learned Laravel from your channel. And also learned Hindi from You seeing your video. Now I understand Hindi almost 90 %. Thanks For your Work.

  • @prasadbagul2146
    @prasadbagul2146 Рік тому +1

    Sir your teaching is awesome i learn so many things from your channel but sir please cover remaining topics of your advance and basic JavaScript series

  • @suraj-se5ne
    @suraj-se5ne Рік тому

    bahut bahut Dhanywad. Please 2 din ke gap pr is series me 1 video upload klar diya kariye plz sir

  • @VikashKumar-op6kn
    @VikashKumar-op6kn 10 місяців тому +2

    Hi, I request you to please complete this course
    Make video on #Roles,#Permission,#Get in Laravel please

  • @Kodil-jx2hp
    @Kodil-jx2hp 3 місяці тому

    This video tutorial covers migration modifiers and constraints in Laravel, including adding new columns, renaming columns, deleting columns, changing column order, and modifying data types. It also demonstrates how to create a new migration file, update an existing table, and apply various constraints such as unique, nullable, and default values.
    Key moments:
    00:01 The video discusses how to modify tables and columns in Laravel migration using commands and flags, demonstrating the process step by step.
    -Creating and modifying columns and tables in Laravel migration.
    -Understanding the process of renaming, deleting, and changing column order in tables.
    -Exploring data type and size modifications in columns, along with schema and class creation.
    06:03 The video demonstrates creating migration files in Laravel, updating tables, and adding new columns to tables using commands in a practical session. The process involves running migration files, updating schemas, and executing commands in the terminal.
    -Creating migration files and updating database tables using Laravel commands.
    -Adding new columns to tables and updating schemas during the migration process.
    -Demonstrating the use of automated commands for rolling back changes and resetting tables.
    12:08 The video discusses creating and modifying tables in Laravel migrations. It demonstrates renaming columns, adding new columns, and setting default values for columns.
    -Demonstrating the process of renaming and adding columns in Laravel migrations.
    -Explaining the method for changing column sizes and handling existing columns.
    -Creating a new migration file, setting default values, and using flags in Laravel migrations.
    18:12 The video demonstrates how to rename columns in a table, change default values, and check table versions in a database management system. It also shows how to update table structures and handle existing tables effectively.
    -Checking and updating table versions in the database management system.
    -Renaming columns and setting default values in a table.
    -Demonstrating the process of checking and adjusting table structures for improved database management.
    24:15 The video explains how to rename tables and create new columns in a database using Laravel migration commands, demonstrating practical examples and unique features.
    -Demonstration of renaming tables and creating migration files in Laravel. Practical examples of using terminal commands for database management.
    -Explaining the process of setting default values and making columns unique in Laravel migrations. Showing how to handle unique constraints and default values effectively.
    -Illustrating the concept of primary and foreign keys in database tables using Laravel migrations. Detailing the importance of setting primary and foreign keys for table joins.
    30:18 The video discusses creating primary and foreign keys in Laravel, setting restrictions on columns, and utilizing methods like 'auto increment' and 'current' for efficient database management.
    -Setting restrictions on columns and joining tables in Laravel for efficient database management.
    -Utilizing 'auto increment' and 'current' methods for seamless data handling and table alterations in Laravel.
    -Rolling back migrations, creating new tables, and defining columns like 'student ID' in Laravel for structured database operations.
    36:21 The video demonstrates setting primary and foreign keys in Laravel, ensuring uniqueness and default values for columns. It also showcases how to add constraints and modify columns for database tables.
    -Setting primary and foreign keys in Laravel for database tables.
    -Ensuring uniqueness and default values for columns in the database schema.
    -Adding constraints, modifying columns, and understanding column attributes in Laravel.
    By Pansota-43 form Pakistan

  • @techcamp_pro48
    @techcamp_pro48 Рік тому +2

    sir ap ne kaha ta laravel ke ander jab hum table create kartye hain tu *s* sath lazmi aye ga but jab ap table ka renmae kar rahye hain tu ap ne students se student kar dea ta , hOW ?
    *AND 2nd* me ne without *s* ke table create kar ke dekh vo tu hu raha hai like student

    • @Playaryan-p9u
      @Playaryan-p9u 5 місяців тому

      In Laravel and many other PHP frameworks, it’s a convention to use plural table names in the database. This convention is part of what’s known as the “pluralization” naming convention. While it’s not a strict requirement, it’s widely followed, and there are good reasons for doing so:
      Readability and Clarity: Plural table names make the database structure more readable and self-explanatory. When you see a table named “users,” for example, it’s clear that the table holds multiple user records.
      Consistency: Following naming conventions helps maintain a consistent and predictable codebase. When developers consistently use plural table names, it’s easier for others to understand the database structure.
      Compatibility: Many Laravel features and Eloquent (Laravel’s ORM) assume that you’re following the pluralization convention. When you adhere to this convention, it reduces the need for additional configuration, making your code more straightforward.
      Eloquent ORM: Eloquent, Laravel’s ORM, is designed to work seamlessly with plural table names. It uses naming conventions to automatically map models to database tables. If you follow the pluralization convention, you can take advantage of this functionality without extra configuration.
      That said, Laravel is a flexible framework, and it doesn’t strictly enforce this convention. You can use singular table names if you prefer, but you might need to configure Eloquent relationships and model-to-table mappings manually in your models if you deviate from the convention. For example, you can use the protected $table property in your model to specify a custom table name.

  • @kanhaiyanigamjee8980
    @kanhaiyanigamjee8980 Рік тому +1

    east and west yahoo baba is best👍👍👍👍👍👍

  • @shivsharma3918
    @shivsharma3918 19 днів тому

    Excellent Video Lecture

  • @suraj-se5ne
    @suraj-se5ne Рік тому

    sir ji, mai wait kar rha tha aapke is video ka
    🙏

  • @suraj-se5ne
    @suraj-se5ne Рік тому

    sir 2 din ho gaye , aapne is series me koi video update nahi kiya hai. Please upload the video. Your teaching is good for me.

  • @bidyutmahato87
    @bidyutmahato87 Рік тому +1

    Daily video chahiye sir

    • @YahooBaba
      @YahooBaba  Рік тому +2

      Dear UA-cam mera fulltime job nahi hai, mera main kaam FullStack Development ka hai. Yeh toh main free time mein karta hun.

    • @bidyutmahato87
      @bidyutmahato87 Рік тому

      @@YahooBaba okay sir . Jo vi hai accha hai . 2 din main 1 video dalne ka try karna

  • @muhammadrizwanrazi1914
    @muhammadrizwanrazi1914 Рік тому

    Good morning yahoo baba..❤

  • @amjadahmadzai7947
    @amjadahmadzai7947 Рік тому

    thank you so much we are proud on you sir ,

  • @DEBUGENTITY
    @DEBUGENTITY Місяць тому

    why percentage column is not added in last part of the video at 41:00

  • @princesubba8317
    @princesubba8317 Рік тому

    Thank you so very much sir

  • @rosuperhitttttttt4206
    @rosuperhitttttttt4206 Рік тому

    sir u are amazing

  • @w3techbd
    @w3techbd 7 місяців тому

    Thank you sir

  • @ZikreMustafaSAW
    @ZikreMustafaSAW 6 місяців тому

    Good Video

  • @junaidhassanmustafa4986
    @junaidhassanmustafa4986 Рік тому

    Hi Sir,
    Har baar jb bhi file ko migrate krengy to us k baad modification k liye dobara dobara command chala kar update ki migration banaengy aur modify krengy? I mean jo aik baar (php artisan migrate) hogai, agli baar me dosri file create krwaengy again modification k liye?
    Please reply to this thoroughly here.

    • @nerdyfm4288
      @nerdyfm4288 10 місяців тому

      nahi ussi file maay change kar dejiyea aur us kaay baad php artisan migrate run kardejiyea!!!

  • @manishprajapati1111
    @manishprajapati1111 Рік тому +1

    😊😊👍👍👍👍👍👍👍👍

  • @voiceofrjbilal
    @voiceofrjbilal 10 місяців тому

    Sir jo uper update wali file ap ny banai thi to aus py bi to ap ye dropcolumn etc sab kr sakty thy ye new migration kau banai???

    • @YahooBaba
      @YahooBaba  10 місяців тому +2

      Aisa hum tab karenge jab hum ek team mein project mein kar kar rahe honge. Jab aap koi bhi modification karenge database mein toh wahi migration wali file aap baki team mates ko de denge. Lekin agar aap he akele ek project pe kaam kar rahe hain toh new migration file banane ki koi jaroorat nahi hai.

  • @shanikhan5148
    @shanikhan5148 Рік тому

    Sir mera ik question ha agr hum koi website bnaty ha to us sy phaly us website ka figma design tyar krna prta ha ya phir without figma ky bi website design ki ja sakti ha? Jasay ky aap ny web templates or websites bnay ha to aap figma design ky according bnaty ha kya ?

    • @YahooBaba
      @YahooBaba  Рік тому +1

      Aisa kuch jaroori nahi hai ki Website development se pehle Figma/ Photoshop/ Adobe Xd jaise software ki file banayi jai. Kahi baar hum kisi doosri website ke design ko dekh kar bhi website banante hai ... jaise bhi client ki requirement hoti hai. Lekin companies mein mostly pehle figma ya psd file bana kar kaam shuru hota hai. Pehle client se approve hota hai design aur baad mein HTML, CSS, JS ka kaam hota hai.

    • @shanikhan5148
      @shanikhan5148 Рік тому

      ​@@YahooBaba Thanks Sir ❤

  • @codecommitter
    @codecommitter Рік тому

    sir agr ham ye database k saray functions ko direct php my admin se kr lein to kia issue ho g jese table k columns k change krna, constraints apply krna , table delete krna, table name modify krna. kindly respond. php me ham agr direct krtay thay to koi frq ni prta tha

    • @YahooBaba
      @YahooBaba  Рік тому +1

      Aap bilkul theek soch rahe hai. Yeh sab kaam hum directly phpmyadmin mein ja kar bhi kar sakte hai. Migration ka use tab hota hai jab aap team mein kaam karte hai aur sath mein GIT use karte hai. Jab aap kisi company mein kaam krenge toh wha par jyada chance hai ki Migration ka use hota hoga. Isliye aapko Migration ki knowledge honi chahiye but yeh compulsory nahi hai.

  • @HarshitSharma-qx6uk
    @HarshitSharma-qx6uk 22 дні тому

    Sir percentage and comment field database table mei migrate nhi hua?

  • @shubhamnimanpure5807
    @shubhamnimanpure5807 Рік тому

    Sir react js pr video banado plz👏🏼👏🏼

  • @muzamilqasim
    @muzamilqasim Рік тому

    Hello sir,
    Sir apki website par jo php or laravel k projects hain os me live demo par click karty hain to kia wo dynamic website hain ya static templates?
    Or agr dynamic hain to har projects k database upload hy?
    Sir ye explain kar dain k demo upload karny ka kia procedure hota hy or live preview kesy banty hain?

    • @YahooBaba
      @YahooBaba  Рік тому +1

      Hello, Jo bhi projects demos humari website pe hai woh sabhi Dynamic Website hai with Database.
      Demos banane ke liye kuch fake data dalna padta hai aur Database ki Insert, Update aur Delete commands ko band karna padta hai because jo bhi data dikh rha hai woh sirf display ke liye hota hai.

    • @muzamilqasim
      @muzamilqasim Рік тому

      Thank you sir, 1 last confusion clear kar dain pls,
      Sir for example agr ham portfolio website me project show karny hain to view folder me ham project folder bnaye gy or osme sab projects rakhain gy? (Views/projects/all projects)
      Or in sab projects k routes or controller bhi add karny hongy main portfolio project me?
      Agr esa hy to is se routes or controller ko manage or modify krna difficult ho jaye ga. Agr koi or method hy to wo bta dain.

    • @YahooBaba
      @YahooBaba  Рік тому +2

      @@muzamilqasim Muzamil jaise aap soch rahe hain waisa kuch nahi hota. Har Demo project ke liye alag subdomain banaya jata hai. Mera kehne ka matlab hai har demo ek alag domain pe hota hai, kisi ek he project folder ke andar sabhi project nahi dale nahi jate.

    • @muzamilqasim
      @muzamilqasim Рік тому

      Thanks alot sir ❤

  • @jayeshparmar3132
    @jayeshparmar3132 Рік тому

    THANK YOU

  • @viral_agent0
    @viral_agent0 Рік тому

    Kodular tutorial par tutorial banao bhai

  • @bidyutmahato87
    @bidyutmahato87 Рік тому

    Thanks 🙏

  • @shakeelahmad2424
    @shakeelahmad2424 Рік тому

    Bhtttttttttttt khoooooob

  • @rizwanpathan8129
    @rizwanpathan8129 Рік тому

    How to drop updated and Created colums in Database. I am Unable to insert data.
    Facing updated and Created columns error.
    Please Suggest

    • @YahooBaba
      @YahooBaba  Рік тому +1

      For that you have to use down() function in your migration file.
      public function down(): void
      {
      Schema::dropIfExists('users');
      }
      Place your code in down() that whenever developer rollback this page then what update column and created column have to be removed.

  • @fahizbaloch5929
    @fahizbaloch5929 11 місяців тому

    💗💗💗

  • @darshilpatel7645
    @darshilpatel7645 Рік тому +1

    Sir second update ki file migrate karta hu to error aata hai.
    "Changing columns for table 'students' require Doctrine DBAL. Please install the doctrine/dbal package."
    Iska solution!!!

    • @YahooBaba
      @YahooBaba  Рік тому

      First Question : Apka Laravel version kaunsa hai ?
      2) MySQL ka version kaunsa hai ?
      3) Aapne kaunse methods use kiye hai columns ko update karne ke liye ?

    • @darshilpatel7645
      @darshilpatel7645 Рік тому

      @@YahooBaba 1. Laravel version 10
      2. MySql version 8.0.19
      3. $table->dropColumn('email');
      $table->string('city',20)->default('No City')->change();

    • @YahooBaba
      @YahooBaba  Рік тому +1

      @@darshilpatel7645 See your MySQL is lower than 8.0.3, so you have to install doctrine/dbal package. Open your terminal in VS Code and paste this command :
      composer require doctrine/dbal
      It will solve your problem.

    • @darshilpatel7645
      @darshilpatel7645 Рік тому

      @@YahooBaba Ok sir.
      Thank you for helping me ♥♥😇

    • @parulrawat136
      @parulrawat136 Рік тому

      Thank you for the question , and thank to you too yahoo baba for solution

  • @Mubashir-IT
    @Mubashir-IT Рік тому

    Sir ap laravel Par or videos banaen

  • @techsupport_az
    @techsupport_az Рік тому

    Sir your premium laravel project css file not work ...please help!

    • @YahooBaba
      @YahooBaba  Рік тому

      Which project ? My Email : hello@yahoobaba.net

  • @getsetalk
    @getsetalk Рік тому

    Sir Sabhi Laravel episode par number v daal dijiye pata nhi chal pata hai kabhi kabhi

    • @YahooBaba
      @YahooBaba  Рік тому

      Dear already sabhi videos ke thumbnail pe Number dala hua hai.

  • @shajadulshadin
    @shajadulshadin 6 місяців тому

    Done

  • @suraj-se5ne
    @suraj-se5ne Рік тому

    SIR, GOOD MORNING, Sir aaj 3 din ho gaye , abhi tak aapne laravel se related koi video upload nhi kiya? please next video upload kar dijiye

  • @sumananaskar3953
    @sumananaskar3953 8 місяців тому

    If i want to update a table for the second time, it is showing a error that the table is already exists.. What should i do?

    • @rahulchand5729
      @rahulchand5729 8 місяців тому

      no problem put the cmd php artisan migrate:refresh
      and hit the enter

  • @MalikAwan-v5h
    @MalikAwan-v5h 10 місяців тому

    😘

  • @ShaikKhaja476
    @ShaikKhaja476 11 місяців тому

    Hi, could you please add video on apis

  • @premmourya7060
    @premmourya7060 Рік тому

    Sir canvas seekhna h kya kru

  • @muhammadashan8762
    @muhammadashan8762 28 днів тому

    wha :)

  • @suvajitdandapat732
    @suvajitdandapat732 Рік тому

    sir how much time it will take to complete laravel 10

  • @raaz7070
    @raaz7070 4 місяці тому

    Mera database create ho raha hai but admin panel pe show nahi ho raha , i want help

    • @YahooBaba
      @YahooBaba  4 місяці тому

      Kaunsa admin panel ? Kya aap PHPmyadmin ki baat kar rahe hai ?

    • @raaz7070
      @raaz7070 4 місяці тому

      @@YahooBaba ji

    • @raaz7070
      @raaz7070 4 місяці тому

      @@YahooBaba php artisan show:status pe tables vi dikhara but php myadmin pe mil nahi raha database aur tables

  • @princesukhala7106
    @princesukhala7106 9 місяців тому

    22:00 min
    done

  • @shahindomar3958
    @shahindomar3958 Рік тому

    Nice

  • @08_saptarshichatterjee94
    @08_saptarshichatterjee94 Рік тому

    Sir how can I contact you?
    I have some doubts

    • @YahooBaba
      @YahooBaba  Рік тому

      email me : hello@yahoobaba.net

  • @alamshaikh4358
    @alamshaikh4358 Рік тому

    Sir how many videos are left on migration?

  • @ZahoorAmamMehdiASNetwork
    @ZahoorAmamMehdiASNetwork Рік тому

    Hello bro Sim number database video bana do please pakistan

  • @HassanKhan-pq6un
    @HassanKhan-pq6un Рік тому

    Hello sir please make a tutorial on moneris payment gateway integration using Codeigniter or PHP please i really need this to get hired in a Canadian company please sir help me out i shall be very thankful to you for this kindness.

    • @YahooBaba
      @YahooBaba  Рік тому +1

      Hello Hassan, see all the payment gateways integration is almost 90% is same. If your know any payment integration then you can easily implement moneris payment gateway.

    • @HassanKhan-pq6un
      @HassanKhan-pq6un Рік тому

      @@YahooBaba sir i never use any payment gateway before that's why i need moneris payment gateway tutorial please i have very short limited time and the only thing which i don't know.. it's a kind request sir

    • @HassanKhan-pq6un
      @HassanKhan-pq6un Рік тому

      Sir please make one long video tutorial on moneris payment i take one more day for it please sir help me.
      Make one form for its payment credentials and attached moneris API to it to perform transactions please only this thing i need to learn..you are my ideal programmer through your channel i become a full stack developer the only thing is payment gateway which i didn't learn before i have cleared their interview round but they assign me a task to implement moneris payment gateway but i didn't find any tutorial on it

    • @HassanKhan-pq6un
      @HassanKhan-pq6un Рік тому

      Sir please give me a detailed tutorial on it please sir...
      If you have time then please make tutorial on it tomorrow please

    • @YahooBaba
      @YahooBaba  Рік тому +2

      @@HassanKhan-pq6un Hassan don't search for moneris payment gateway. Learn any payment gateway and then follow this link to integrate Moneris :
      developer.moneris.com/Documentation/NA/E-Commerce%20Solutions/API

  • @nontechbg
    @nontechbg 2 місяці тому

    6 July 2024 👍👍👍👍

  • @bidyutmahato87
    @bidyutmahato87 Рік тому +1

    3-4 din wait karna pad raha hai 😢

    • @ritikpal1928
      @ritikpal1928 Рік тому +1

      Itne jaldi ha to institute ma paise dee kr sikh lee jaldi 😎

    • @shehrozamin9543
      @shehrozamin9543 10 місяців тому +1

      ​​@@ritikpal1928 Sahi kaha ✅