Laravel : Migration Modifiers & Constraints Tutorial in Hindi / Urdu

Поделиться
HTML-код
  • Опубликовано: 15 июн 2023
  • 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.net/codeproject...
    ✅ 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

Комментарии • 88

  • @harshwadhwani7050
    @harshwadhwani7050 Год назад +8

    Thank you for your regular uploads on RUclips! We are all thrilled to see you back, and your videos bring happiness to many people. I understand that being a RUclipsr 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 7 месяцев назад +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 Год назад

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

  • @suraj-se5ne
    @suraj-se5ne Год назад

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

  • @amjadahmadzai7947
    @amjadahmadzai7947 Год назад

    thank you so much we are proud on you sir ,

  • @Kodil-jx2hp
    @Kodil-jx2hp 23 дня назад

    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

  • @princesubba8317
    @princesubba8317 Год назад

    Thank you so very much sir

  • @VikashKumar-op6kn
    @VikashKumar-op6kn 8 месяцев назад +2

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

  • @rosuperhitttttttt4206
    @rosuperhitttttttt4206 Год назад

    sir u are amazing

  • @muhammadrizwanrazi1914
    @muhammadrizwanrazi1914 Год назад

    Good morning yahoo baba..❤

  • @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.

  • @w3techbd
    @w3techbd 5 месяцев назад

    Thank you sir

  • @kanhaiyanigamjee8980
    @kanhaiyanigamjee8980 Год назад +1

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

  • @jayeshparmar3132
    @jayeshparmar3132 Год назад

    THANK YOU

  • @bidyutmahato87
    @bidyutmahato87 Год назад

    Thanks 🙏

  • @bidyutmahato87
    @bidyutmahato87 Год назад +1

    Daily video chahiye sir

    • @YahooBaba
      @YahooBaba  Год назад +1

      Dear RUclips 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

  • @manishprajapati1111
    @manishprajapati1111 11 месяцев назад +1

    😊😊👍👍👍👍👍👍👍👍

  • @ZikreMustafaSAW
    @ZikreMustafaSAW 4 месяца назад

    Good Video

  • @fahizbaloch5929
    @fahizbaloch5929 9 месяцев назад

    💗💗💗

  • @shakeelahmad2424
    @shakeelahmad2424 Год назад

    Bhtttttttttttt khoooooob

  • @user-wr4xg9hf5n
    @user-wr4xg9hf5n 8 месяцев назад

    😘

  • @techcamp48
    @techcamp48 Год назад +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

    • @user-ko4dt5hn5g
      @user-ko4dt5hn5g 3 месяца назад

      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.

  • @shajadulshadin
    @shajadulshadin 4 месяца назад

    Done

  • @shahindomar3958
    @shahindomar3958 Год назад

    Nice

  • @shubhamnimanpure5807
    @shubhamnimanpure5807 11 месяцев назад

    Sir react js pr video banado plz👏🏼👏🏼

    • @YahooBaba
      @YahooBaba  10 месяцев назад

      After Laravel course

  • @junaidhassanmustafa4986
    @junaidhassanmustafa4986 11 месяцев назад

    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 8 месяцев назад

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

  • @princesukhala7106
    @princesukhala7106 7 месяцев назад

    22:00 min
    done

  • @viral_agent0
    @viral_agent0 Год назад

    Kodular tutorial par tutorial banao bhai

  • @voiceofrjbilal
    @voiceofrjbilal 8 месяцев назад

    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  8 месяцев назад +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.

  • @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 ❤

  • @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.

  • @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

  • @Mubashir-IT
    @Mubashir-IT 10 месяцев назад

    Sir ap laravel Par or videos banaen

  • @premmourya7060
    @premmourya7060 Год назад

    Sir canvas seekhna h kya kru

  • @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.

  • @ShaikKhaja476
    @ShaikKhaja476 9 месяцев назад

    Hi, could you please add video on apis

  • @suvajitdandapat732
    @suvajitdandapat732 Год назад

    sir how much time it will take to complete laravel 10

  • @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.

  • @techsupport_az
    @techsupport_az Год назад

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

    • @YahooBaba
      @YahooBaba  Год назад

      Which project ? My Email : hello@yahoobaba.net

  • @nontechbg
    @nontechbg 8 дней назад

    6 July 2024 👍👍👍👍

  • @alamshaikh4358
    @alamshaikh4358 Год назад

    Sir how many videos are left on migration?

  • @08_saptarshichatterjee94
    @08_saptarshichatterjee94 Год назад

    Sir how can I contact you?
    I have some doubts

    • @YahooBaba
      @YahooBaba  Год назад

      email me : hello@yahoobaba.net

  • @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 11 месяцев назад

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

  • @ZahoorAmamMehdiASNetwork
    @ZahoorAmamMehdiASNetwork Год назад

    Hello bro Sim number database video bana do please pakistan

  • @sumananaskar3953
    @sumananaskar3953 6 месяцев назад

    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 5 месяцев назад

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

  • @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

  • @raaz7070
    @raaz7070 2 месяца назад

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

    • @YahooBaba
      @YahooBaba  2 месяца назад

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

    • @raaz7070
      @raaz7070 2 месяца назад

      @@YahooBaba ji

    • @raaz7070
      @raaz7070 2 месяца назад

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

  • @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 8 месяцев назад +1

      ​​@@ritikpal1928 Sahi kaha ✅