Great tut man. You explain this so clearly: your voice, comments, etc. Really well done.
@bnewton14910 жыл бұрын
I have been programming for a little over a year now and this is my first experience with a framework and this is so cool that I feel high.
@lambertpatrick18417 жыл бұрын
Ths video helps me alot i was starting using laravel 5.3 i didnt know in order to migrate for previous version 5.0 and below you must migrate:install.I was getting error for over weeks till i saw this video salute bro...
@toorjatoorja23887 жыл бұрын
You Laravel tutorials are just great ! So smooth. Thank you.
@divyabalachandran961110 жыл бұрын
Great Tutorial Andrew.....Thanks a lot..
@andrewperk11 жыл бұрын
The main benefit of migrations, for me at least, is that it each migration acts like a point in time and you can then easily reset back to that point. It also makes it easy to rollback and completely wipe the database then rerun the migration to create all of the tables again. Migrations also use timestamps so if you work in a team it makes it harder for other programmers to accidentally overwrite what you've done. Another benefit is that you can work with SQL using just one language, PHP.
@1kalekip110 жыл бұрын
A small note: the minute in PHP is not "m" (which is for the month), but "i". So: date('Y-m-d H:i:s')
@andrewperk11 жыл бұрын
It's perfectly fine to use PHPMyAdmin if you prefer. Migrations are just a tool and PHPMyAdmin is another tool. Pick whatever tool makes you most productive and gets the job done right.
@ezekielthemack12 жыл бұрын
Excellent tutorial Andrew. Thanks very much for your help.
@Nstsandy1211 жыл бұрын
Great tutorial, I look forward to seeing more..
@andrewperk11 жыл бұрын
You'll need to add the path to your php installation to your system environment variables. Just google "add php to environment variables" and you'll find a buch of results. Afterwards, restart your command line and the php command should work. Good luck!
@PrideChung12 жыл бұрын
Really great tutorial, easy to understand.,and short
@MyTemaSM9 жыл бұрын
Thanks for your tutors! You have small typo, when inserting data to 'authors' table: date("Y-m-d H:m:s") so you mistaken with minutes, it must be: date("Y-m-d H:i:s")
@lakshmananr88909 жыл бұрын
Very Nice tutorial easily understand and developed ...
@testvetegromedia12 жыл бұрын
great vid! but it would be a good thing if you could work on the sound quality. Purchase a better headset and put the pc under the desk to kill these sonor noises in the back. I think that would help a lot. But again, the video's great and i'll watch all videos of this series. Thx for that!
@museumoftechno11 жыл бұрын
Hi there If you had 2 authors with the same name - one added via a migration "up" method, one maybe added by someone else by another process, and you ran a migration's "down" method which deleted matching on name, I guess that would delete both authors with the same name? Is that an issue worth worrying about, and if so are there best practices to mitigate the issue? Thanks for the top-quality tutorials!
@Chellles10 жыл бұрын
Thanks for your video, this is very useful for me and the comunity.
@CalicoArchives8 жыл бұрын
Nice tutorial. When you already have a lot of information in a table that was user generated, how do you generate a migration file similar to Add_Authors so you can move everything to a new table in another database?
@devthapa60910 жыл бұрын
very Good Tutorial to understand Laravel. Thanks
@bobbarker338710 жыл бұрын
Nice demonstration of the migration function. Not sure why you demonstrated hard coding the table updates though. Certainly not a best practice and certainly something that would never be done in production.
@k4f11 жыл бұрын
That makes perfect sense, similar to how Rails does it. However, if I am the only developer on the project and don't want to worry about rollbacks, etc. (small project) is it okay to simply create the tables myself through phpMyAdmin? Or is there a downside to that other than what you mentioned?
@triple11111111 жыл бұрын
nice work, i like your tutorials
@GrumpyDeveloper12 жыл бұрын
Nice tutorial. I would be better to add your data fixtures for the insert authors as a task and keep migrations for schema operations
@carlk710911 жыл бұрын
Hey Andrew. As a laravel newb, I just wanted to thank you for the tutorials. One question that I have in this one: it looks like you're doing the initial seeding of the authors table within the migrations directory, rather than using the seeds directory as others suggest. For me, I'd prefer keeping everything in the one directory, as you do here; is there any downside with doing things this way?
@justinwong14369 жыл бұрын
Thank you so much!! Yr video is so informative and pretty helpful to me :D
@marcelloperri18310 жыл бұрын
thanks mate, you are very good teacher, but I don't understand the purpose of a programming style like that. We should create something more dynamic and flexible... I hope to understand in the next video.
@andrewperk12 жыл бұрын
You're right. I noticed that right after I uploaded the video but it was too late at that point. Thanks though.
@AnGhaeilge9 жыл бұрын
When attempting to create the create table script, I get this error: "Command "migrate:make" is not defined." - Apparently, the updated command is "php artisan make:migration [name]"
@webtjanst67207 жыл бұрын
Is there any video that shows how to install Sctipt based on Laravel and Bootstrap in webhosting?
@RedGlobeMedia11 жыл бұрын
Did you create the database first (it won't create it for you) and configure the connection in laravel/app/config/database.php?
@vipinsankhlecha210 жыл бұрын
I am getting error on php artisan migrate:install- SQLSTATE[HY000] [1049] Unknown database
@farhantubeify11 жыл бұрын
did you fixed it, I'm new to laravel and also facing same problem.
@jomarmillete36977 жыл бұрын
is there's a difference when ill just use and manage the data directly in phpmyadmin? cause it is much easier rather than manually typing the data and commands
@lazaraleksic47427 жыл бұрын
I am following with video , doing everything as u do, but in phpmyadmin section where my autors are i cant see Andew Perkins and Author numbler 2 . It doenst show
@visheshdwivedi69707 жыл бұрын
if i manipulate my table using xampp server.. not by migrations ... then will it affect later in the process..while my making my website??
@vipinsankhlecha210 жыл бұрын
When I created two add migration file and do migrate:rollback both are rollback simultaneously but require only specified file is rollback.Please tell me how can i do........?
@deepakgoswami01435 жыл бұрын
Nice work.. (y). sir, can you please give the name of your Sublime Editor Theme and color scheme settings detail .. I liked that :)
@coreydoyle470211 жыл бұрын
What is the benefit of creating a database table through the migration method? -Cheers
12 жыл бұрын
Hi andrew what's your font settings in sublime text ?
@c101hir10 жыл бұрын
Thanks Man, it's Awesome ...
@mailshijith8 жыл бұрын
Can i use this migration from existing table ?
@DaveStewartLondon11 жыл бұрын
Any reason you didn't just insert the SQL natively inside the up function?
@nacoxify10 жыл бұрын
you don't need to insert created_at and updated_at manually since timestamps-method does it for you
@lakshmananr88909 жыл бұрын
My question Wamp Only used or else Xamp can i used???
@thecodes7 жыл бұрын
HY, I HAVE A LARAVEL PROJECT IN 4.2, NOW I NEED TO UPGRATE IT INTO 5.5, HOW TO DO THIS?
@ElijahAlcantara10 жыл бұрын
Does anyone know why in Laravel4 we are getting "Nothing to migrate" with the code?
@matteusdev2310 жыл бұрын
Because you've done the migration one time already. execute php artisan migrate:make yourtablename again, and place your code in the up() function right there. Thats the way i do it with no problems. Have you discovered a way to do it?
@LizardanNet10 жыл бұрын
unknown column errror, "created at" column not found
@brian4it10 жыл бұрын
I love you, man. :)
@nit11a0111 жыл бұрын
why i am getting error in command prompting. MY OS is WIN7 32bit Prof
@TechBroad10 жыл бұрын
why do you dont need to put the: use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; ??????????????
@bikramshrestha93806 жыл бұрын
Thank you!
@alexwly711 жыл бұрын
I have this problem -Warning: PDO::__construct(): [2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock)- when I execute in the terminal this "php artisan migrate:install" for those who have problems intalling migrate using mamp.. add this 'unix_socket' => '/Applications/MAMP/tmp/mysql/mysql.sock', in database.php on mysql array configuration right after 'host' => 'localhost', if u want and that should solve the problem..
@FeliceOstuni12 жыл бұрын
jut to say, great video, but correct iso timestamp is: date('Y-m-d H:i:s') not date('Y-m-d H:m:s');
@kavyakhachane752810 жыл бұрын
u r great!!
@rababzein70129 жыл бұрын
Is that Laravel 4 or Larvel 5 ??
@Joe09949 жыл бұрын
+Rabab Zein 4
@bangje849811 жыл бұрын
is this laravel 4 or 3?
@jaycole911911 жыл бұрын
certainly not 4
@coreydoyle470211 жыл бұрын
I see, thank you. -Cheers
@coreydoyle470211 жыл бұрын
Why was this marked as spam???
@triple11111111 жыл бұрын
same opinion
@acrolyt12 жыл бұрын
H:i:s, dude : ) Still, very nice tutorial, thanks and keep up the good work.
sir, i'd ask which version of lavarel which you use in above demonstration.. I am a completely newbie, I have just worked with laveral a few days ago, and I am so confused because there many tutorials but ... there are many version and each one of them is different
@vipinsankhlecha210 жыл бұрын
I am getting error on php artisan migrate:install- SQLSTATE[HY000] [1049] Unknown database 'laravel'
@joshuawedekind390310 жыл бұрын
Have you created a database named "laravel" on your local MySQL server?