Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть (27) What is Migrations in Laravel | Why we use Migrations in Laravel | How to Create them

  • Career Development Lab
  • 2022-05-03
  • 1131
(27) What is Migrations in Laravel | Why we use Migrations in Laravel | How to Create them
laravellaravel courselaravel beginners courselaravel advance courselaravel with cdlcareer development labcdllaravel with hadilaravel guidehttps://cdlcell.comcdlcelllaravel migrationswhat is laravel migrationwhat are the laravel migrationswhy we use laravel migrationshow to create migration in laravelpurpose of migrationsmigration in hindilaravel course in hindilaravel hindi courselaravel 9 course in hindilaravel series in hindi
  • ok logo

Скачать (27) What is Migrations in Laravel | Why we use Migrations in Laravel | How to Create them бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно (27) What is Migrations in Laravel | Why we use Migrations in Laravel | How to Create them или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку (27) What is Migrations in Laravel | Why we use Migrations in Laravel | How to Create them бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео (27) What is Migrations in Laravel | Why we use Migrations in Laravel | How to Create them

Laravel Migrations ….What are they? Why use them? How to use?

If you’re unable to wrap your head around understanding Laravel Migrations, its really simple. Let me get straight into the Q & A.

First of all what is a Laravel Migration?

Simply put, Laravel migration is a way that allows you to create a table in your database, without actually going to the database manager such as phpmyadmin or sql lite or whatever your manager is.

Why should you consider doing a Migration when you already have the ability to create the tables directly?

The whole point in doing Laravel Migrations is the ability to perform sort of a version control to your database. So, actually when you can revert back to previous version or deploy the next version for your tables why don’t you consider doing migrations? you’re probably like “pssst…Is it just that?” Ofcourse not!

Imagine this : You’re working with a team & suddenly a new idea strikes, so you have to alter the table structure right now. What do you do?

Well, you probably pass around the .sql file around & that Joseph there was busy texting his gf that he forgot to import that .sql file & it so happened that the application was broken & you’re pissed at him.

Actually by doing migrations, you can essentially tackle the team collaboration issues as concerned with databases.

Migrations allow you to add or drop fields in your database without deleting the records already present.

How is it possible?

Laravel keeps a track of which migrations have already been executed within the table. This way, it will only do new additions or deletions of columns based off of your requests.

Ok Cool. Let me give it a try, how should I get started?

Step-1: The first step is to first create a migration file. This command basically creates a file in which you can define the structure of the table you wanna create.

Do this in your command prompt:

php artisan make:migration create_articles_table --create=articles
the “create” suggests that you need to create a table whose name is “articles”. “create_articles_table” is a name for the migration.

Step-2: Specify what is to be done when you run a migration.This usually would mean either adding a column or 2 or howsoever. In my tutorial, I wanna add 2 fields such as “name” and “content” for the article. Usually the migration file comes along with the “id” & “timestamps” fields by default.

Anything you want to execute during a migration goes inside the “up” method While, anything that needs to be reverted after migration goes inside the “down” method.

Once you’re done adding whatever you want to add, then its time for you to run the migration.

Step-3: Run the migration.

php artisan migrate
This is the basic idea of creating a table using migrations. Easy, isn’t it?

I need more support. How do I get more?

Check out my tutorial on laravel on my YouTube channel.

Laravel series goal:
My goal with this Laravel series is to create a guide for those just learning Laravel. This guide will take you from the very beginning of an idea into a real deployable application.

Do you want to get learn more about the laravel, let's take eye on given below series.

Stripe Integration with Laravel cashier
   • Laravel Tips  
Laravel step by step guide
   • Laravel step by step guide  
Laravel Advance series
   • Laravel Advance Features  
Laravel Multi role authentication
   • Laravel Multi Role Authentication  
Laravel fullCalendar js series
   • FullCalendar js in Laravel  
Laravel Solutions series
   • Laravel Solutions  

If you are facing any problem during development, you can post your queries free of cost at https://solutions.cdlcell.com so our team will respond to you within 24 hours.

If you need paid help from us, please visit https://solutions.cdlcell.com/user/in... to process a contract with us.

Contact us: [email protected]
Our website: https://cdlcell.com

My Twitter:   / hadayatniazi3  
My FB:   / hadayatniaziofficial  

Follow us on LinkedIn:   / cdlcell  
Follow us on Tiktok:   / cdlcell  
Join us on Instagram:   / cdlcell  
Follow us on Facebook:   / cdlcellpk  

Join our Laravel Developers whatsapp group: https://chat.whatsapp.com/JSA8qZZGVbP...

#php
#phplaravel
#laravel
#webdevelopment
#cdl
#career_development_lab
#hadayatniazi
#coding
#technology

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]