PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, January 21, 2022

[FIXED] Removing default migrations from Laravel

 January 21, 2022     composer-php, laravel, laravel-5, laravel-migrations     No comments   

Issue

After creating a new Laravel project with laravel new, there are a couple of migration files in the database > migrations folder:

2014_10_12_000000_create_users_table.php
2014_10_12_100000_create_password_resets_table.php

These seem to be examples of typically useful migrations and are probably a good place to start if you need a system that requires something similar. However I'd like to delete them so they don't clash with something in a new project I'm building.

I was hoping I would be just able to delete the files, as I've not run php artisan migrate yet, but when I try my IDE says:

enter image description here

Why are these files already tied into the system, and how can I safely remove them? Is there some documentation on the Laravel site that I've not been able to find about this?

I guess I could ignore the warning and try running composer dump-autoload -o, but is this really OK?


Solution

Why are these files already tied into the system

to map all project classes

how can I safely remove them?

Ignore IDE and delete them then run composer dump-autoload and will remap project classes

Is there some documentation on the Laravel site that I've not been able to find about this?

i don't see any thing about this in laravel documentation site



Answered By - Mortada Jafar
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing