Part 15 - Working with Dates from Database [How to Build a Blog with Laravel 5 Series]

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys welcome back to how to build a blog with laravel this is part number 15 and this is going to be kind of a different episode today this is going to be kind of a raw and just original episode and so what's going on today is basically I promised you guys to do more videos and I've been getting awesome feedback by the way from the FAQ page so those of you guys that found it helpful I think it's great I'm glad I did it because I actually almost didn't I recorded that whole video and then almost didn't post it because I thought maybe you guys wouldn't find it that helpful and you guys would just be pissed that I didn't do I did just spend that time making part 14 so um I was actually really worried about that I decided not to I decided to just go ahead and post it anyway and that's why it wasn't edited as quite as much as because I didn't want to spend too much time on it but anyway it sounds like you guys found it useful and I got really good feedback and you guys have been sharing with me a ton about what you're working on stuff like that and I've been getting a really good chance to getting to know you guys and since I'm really busy tomorrow which is for the video that I was going to post which will be today when you guys watch this so that I'm super busy today basically the day you guys are watching this and so this is the night before and I thought about just skipping a video because Tuesdays are really busy for me go to the livestock auction every Tuesday and it ends up killing four or five hours then I got to do I have work appointments around that usually and so it burns like Tuesday's of the worst for me so I almost didn't post a video and then I thought you know what I want to do a quick one because I've got to know you guys really well and you guys have been really honest and raw with me and it's been really fun kind of getting to know what you guys are working on getting to know your personalities is those of you guys that have reached out and contacted me and stuff I think it's awesome and I decided you know what instead of just skipping out in a video for tomorrow let's do a quick video today little post for today and because I don't of the time to do full-on editing I'm just going to do kind of what I'm gonna call raw where it's just like me go and add it in front of the computer and you're just going to see I'm going to make mistakes and in fact I'm recording this after the fact so when I first recorded the intro I said it was going to be a quick episode and when I was done I ended up talking way too long and in it of not being a quick episode so anyway this is not a quick episode I apologize it's a long one but it's not edited in like as much as the other ones are and so I think that you guys will find that useful to kind of see I'm not saying this is the new format but I'm just thinking it might be useful to see a few of these here and there which kind of show the mistakes that I make along the way how I actually have to reference the documentation for a lot of these things because I don't have it all memorized and stuff like that a lot of you guys think I have this stuff memorized I've been getting comments about that and I don't I look at the documentation and that reminds me how a lot of it works and if you do something enough I'll remember so I wanted to kind of show you guys how I work and this is going to be just like I said a raw episode it ends up being long because I go on a few tangents and talk about some you know some side note stuff that I normally would cut out from a super edited video but I want to keep it in there because I think it might be useful for you guys so anyway I had fun doing this episode they're not all going to be this way we're going to go back to the heavily like more structured and edited ones in the future but for this one I think it's fun and I might make us habit of every Tuesday doing a video that's kind of raw like this because I always have limited time on Tuesday and so it's kind of the best way for me to just get a video out quick because it doesn't take a lot of pre-production or post-production I just kind of sit in front of the computer here record a message with you guys talk to you guys and you guys gets a chance to better get to know me which i think is going to be cool as well so anyway I hope you guys enjoy this episode this episode we're basically going to take and enhance our post up show a little bit more than we did it we were able to in the last video one of the main focuses we do in this video is working with dates and times in with label and PHP and so this is a really common thing that a lot of people a lot of people forget is or haven't worked with before is sometimes working with dates when you pull them out of a database it's a little tricky sometimes to get them to work the way you want with PHP so we're going to show you how to work with dates app when they come out of a database and how to output them to the user and stuff like that so anyway that's what this episode is about I've talked long enough stay tuned for this episode leave a comment below if you guys like this or if you hated it if you hated it I won't do it anymore that's plain as simple um so if you hated it just let me know and I won't do it if you enjoyed it let me know and then I obviously continue and I might do these every Tuesday because I'm kind of limited on my schedule on Tuesday it's always really busy anyway that's it let's get started alright so quick video today I am going to be swamped tomorrow and so I know a video won't come out will will not come out unless I do it now and I don't have time to do a full-on video so we're going to be doing a quick one today and it actually works out because after I finished last video I realized we should probably add a little more to our post show page and you can see that I've got this set up right here we just have our we finished part 14 we created this little item this this page here I just want to add a little more information such as the date that the page was created so it's a there's a little bit more on this page and that's what we're going to be doing today alright so basically what I was think about doing is over here creating instead this being a full 12 with 12 column with page I was going to make this area basically like a couple pages or sorry a couple columns like maybe eight columns then four columns will do a sidebar and that sidebar will basically have some of the metadata for our posts now as we work continue on with this tutorial we're going to be working on some other stuff for posts to kind of give posts a lot more depth but right now all we basically have to work with all that we're work storing and everything like that right now is the title the body and the the date that it was created and edited so what I want to do is I basically want to add some buttons that are going to link us to edit the post because we have if you follow the crud architecture right now we've already done the create we're working on the read right now the other the next thing we need to do is update and update is basically editing a post to change something so we would want to have an edit button on this page that allows us that takes to a forum where we can edit the pay the blogpost and then resubmit it to the database that's part of the update command which is coming up soon but we need a we're going to go ahead and create a button that links to that likewise we also the final D of crud is to destroy or delete and we need a button that we could delete it from here as well so I want to add those two buttons as well as our dates so let's go ahead and do that so we're going to basically mix put this into basically an eighth column grid I think that'll work out good and then we'll do a four column on the sidebar on the right okay so let's go ahead and open up our our project do I have I do have it open perfect so right where we left off in the last video again you can you can grab it yourself over here in you can get into the project and open it there sorry it's getting late at night I'm getting tired okay so we've got our project here the one thing we just need to do is I'm going to go ahead and wrap this in a in the eighth column grid for bootstrap so we're just going to wrap this well the first thing we need to do is actually wrap it in a row and then we can wrap it into a column MD eight which is going to put basically the body of them and the title into the eighth column section and then over here we can do MD four which is going to finish out the twelve columns and then this can be the the actual post the sidebar UM's I mean what I want to do is actually create a well on the side I believe you just give it a class of well maybe double check that it's been a while since I've done the let's go to get bootstrap comm and we're going to go over to the components this is going to be kind of a raw video guys I'm not going to put a lot of fluff on this video we're going to be learning as I go are you're going to be going right along you're not gonna have a ton of editing in this video here because I'm going to be moving really fast all I will link this up above so you can find it but if you go to get bootstrap and then into the components down at the bottom they have this well this makes a good little sidebar so basically you just give a class of well and it basically creates this nice gray box here with nice rounded corners and everything like that that'll be our sidebar so let's we've already done that we gave it a class of well so let's come back over here and okay that's what we've already done and now we can do is inside of here let's go ahead we're actually going to let's see we're going to have our created at here and then we'll have our date that the item was created at and then we're going to I mean know what I'm thinking you want to put this in to prop we'll just do a paragraph tag for now you probably would wrap at in like a definition tag let me let me just show you actually real quick so there are these this is kind of an html5 thing it's these definitions is what they're called and they've already got the CSS form I believe in let's see if we can find it here it is a dud definition list so this is something that's in html5 now and this works really good with basically presenting information exactly like this basically what you have is think about it like with a dictionary you have like a term and then you have a good definition for that and that's what these definition lists are description lists are so there are horizontal descriptions that we have styled and we also have these traditional description so we could do something like let's go ahead just do this horizontal description so we set up a description list at the DL is again this is an html5 thing you might not have worked with this before this is again the best way to submit this kind of information so I want to teach you guys something new a lot of you guys might not have known about this so we'll add this to the video alright so we're gonna do that we give it a class of DL horizontal and then we do our definition title and a definition definition description so on the DT and the DD so let's come back over here and that's what we'll do right here so we want to create a we're going to create a definition list and then give the definition list a class of DL horizontal if I could horizontal hope I spelled it right and then we got to close that obviously and then we're going to do give it a definition title of created app like that and then we'll just do the definition description and we'll just put time we're going to fill this in dynamically in just a second let's go ahead and just do one more we're going to copy that definition list and then or just and then we'll do another one here we'll say last updated like that and I'm time that'll be perfect so let's go and save that oh and then let's go ahead and add our buttons for edit and delete so if we come down here we've got our well we still want to be inside the well so what we're going to do here is we're going to let's just create a nice little web stew a horizontal rule not a hey are I always do that okay HR for horizontal rule just creates a nice little line spaces it out and then below that will do the will do the buttons so I want to go ahead and create let's have the buttons side by side we'll have edit button and then the delete button I'm going to go ahead and just create another row like a class of row and then we'll just split this into into columns so we can do small twelve and two of those so if we do I didn't mean twelve I meant six my bad six and then I'm doing some crazy sublime stuff will do I'm gonna do a video series about sublime coming up so you guys can discuss some of these things in the tutorial if you if you want and then I'm going to be doing some thing about sublime some of these shortcuts do you see me using coming up soon but anyway in this one we want to make an anchor tag and I'll just have that go to a just nowhere for right now and then we're going to give this a class of button BTN let's make the Edit button like just due button primary that makes it blue that the default bootstrap style button primary and then button block just makes it full width inside of that column which will be half of the so we have a sub row here inside of let's see we've already got a row here and then this is a sub row that should fit inside of this area if everything is working according to plan we'll find out in a second okay and then we're giving it a block and inside of this sub row we're basically splitting it into two pieces so they should be side by side and then the button block will just spread it it's full within the column let's give this say edit and then we'll close the button and then over here we'll basically do the exact same thing I'm going to go ahead and copy it no shame and copy and pasting guys I do so much copy and pasting that's that's the developer life copy paste copy paste Google copy paste Google that's what we do alright so and then we'll do delete destroy is kind of the more technical programmer term but only programmers use everyone else uses delete so delete is the more user-friendly thing to say here if we change button primary to button danger we get a nice big red button which will be nice as well okay so that should basically let's sum that up let's go ahead and just look at this page in our on our server so I've got the server running over here in my other tab so I'm just going to go ahead and refresh and sure enough we got exactly we want it it says created at last updated at and then we've got these two buttons for edit and delete and we have our post here and as the post were longer it'll show a lot more information obviously over here and then we just got our little sidebar there now as we add categories and tags and all those stuff we can just add that over here as well but for right now this is perfect and we'll want to link up these buttons in just a second first thing I want to do is I want to pull the time in from the database and show you guys how to manipulate it okay so I'm doing this again guys this is a probably a really raw episode I actually let me know if you really like this style of episode that are kind of less polished and where I'm just basically turning on record recording it all the way through and and just seeing what happens you see a little more of the mistakes and as I try to sometimes even I kind of even though I've done these things before sometimes you just forget or you you need clarification and you need to kind of go out to the internet and find it there's absolutely no shame that guy's one of those places is dates PHP dates or something I can never remember I know you do date but the exact formulas there's I don't think there's any purpose in memorizing it and I'm going to go in Google PHP date there's no point in memorizing these formulas just you have Google accessible so you'll always basically come here and work from just the PHP API so what we're going to do is we are going to take the date from the database and put it into a user readable format okay so for example if you for those of you guys have never used the PHP date before there's this function in PHP called date and all you need to do is you basically give it a format using some special codes down here pass in the date and it will format it into something very readable let's go ahead and take a look at our database so that you guys can see how it's stored in the database and then how we're going to work with it so if you come over here go ahead and open up however you you're working with the database I'm using sequel Pro and I'm just going to go ahead and connect directly into the database open up our blog database over here on the left to like look at the database that we've created and then in our post table you can see we've got a whole bunch of post and you might not have quite as many but and then we've got our created at and updated at so you can see this format here this is kind of a standard format that my sequel stores it in its year month date and then hours minutes seconds okay so I believe let's actually double check let's say timestamp is expecting kind of format is it expecting the value of time which is a UNIX timestamp okay so because this is a UNIX timestamp the the information the way the information is stored in the database is as a string once again we look in here this is a date string and not a UNIX timestamp for those of you guys that don't know what a UNIX timestamp is a UNIX timestamp is a very big integer number what it represents is the number of seconds from a certain point in time it was I don't remember the exact date we could look it up real fast UNIX timestamp date original date um there it was right there okay wait a second it here it tells you so here's this a good example so UNIX timestamp com you can see that as of right now if you were to actually tell PHP at the point that I'm recording this video right now if I were to tell PHP to give me the current UNIX timestamp this is what it would output for me so it's this huge long integer and what that represents is the number of seconds that have passed since January 1st 1970 with UTC zero so like Greenidge you know meridian time or whatever does time if your timezone is plus zero it's that moment from january 1st 1970 that's how many seconds of pass since that point in time and that's kind of how a lot of computers actually track information and dates is by this I I don't know where this arbitrary maybe someone below can tell us in the comments but I honestly don't know where this arbitrary date came in or the significance of the arbitrary date but it's always this date and it's kind of the point in time that all computers have counted up from ok so that's kind of how we do this and this is the type of number that we need to pass in to the date command to get it to work all right so if we come back over here we need to do pH we need to do date and then we're going to give it a format using the some codes down here which we'll do in a second and then the second parameter we pass in needs to be a UNIX timestamp all right now we don't have a UNIX timestamp our database is is a string timestamp so we're going to convert it from a string to a UNIX timestamp using another PHP function called string to date or something like that what is it called string to date string to time is what I think it is oh come on this is what this is the beauty of there it is it's string to time there's no there's no underscores okay so string to time is the it takes basically an english string like the one in our database and converts it into a UNIX timestamp okay so we're going to be converting it twice okay so this is what's going to be really fun and this kind of why I wanted to put this video is because if you're ever working with dates you need to kind of understand how these work also if you ever want to compare something like to see if like two weeks have passed since a certain time that you've received the best way to work with that is to convert the both into UNIX timestamps because they're all going to be in seconds and seconds are really easy to work with because you can do basic math so you can calculate the number of seconds that have occurred in a week so I'm going to pop a quick calculator here we're taking a bit of a tangent but hopefully this is useful for you guys so there's 60 seconds in a minute right so in order to find the number of seconds in a week you would just take their 60 seconds in a minute and there's 60 minutes in an hour and there's 24 hours in a day and there's seven days in a week and so you would end up with there's six hundred and four thousand seconds a 600 4800 seconds between in a one-week so what you could basically do is you could you could use basic math and subtract the date that you're working with by 600 and 400 and so forth to basically just see if that the time that you're comparing to was a week ago or more or you know or less or whatever and you can use basic greater than or equal s than to see if it was before or after a certain point in time and so forth hopefully you're falling along but it makes it really easy to work with times when you convert them to a large massive integer like that you can make anything happen because of the integer it makes it just really easy to work with so if you're ever trying to do something like that like if you want to compare and see if something happened in last 24 hours or the last week that's the best way to work with it take your time your string of your your time string convert it to a UNIX timestamp using the string - time STR T Oh time command in PHP you're going to convert them both to that and then you can use basic math commands to compare them so it makes it really easy okay so that's our tangent for today let's come back over here and we already have our post item we call Paulding a title we called in our body so if we want our time what we're actually going to do before we convert it I'm just going to output the raw time just so we can see it so we're going to do post and then create an app and where am I getting this guys you guys should know it should be a mystery I'm just pulling the column name so created at with the underscore that's the name of the column and that's what I do here if I want to access the value of that column so our updated at if we come back over here is just update it underscore at and then I'll get this time right here so we're going to do is same thing and I already see an error but we'll go we need to be doing our blade to echo it out so then after we have our curly braces then we can do post and then update it out and that should do that and then over here we just need to do this let me guys know in this in the comments below let me know if you guys are using sublime or if you're using another text editor I was thinking about doing some stuff with atom text editor but I've been using sublime for so long so I'm really comfortable with it but I've heard some amazing things about atom and so it's made by github and it's free so let me know if you guys use what you guys use for text editors down below obviously I'm using sublime but you know it's honestly a very it's very preference oriented to what you guys want I'd love to hear what you guys are interested in we can do some tutorial we can do have some fun and be really interesting to kind of to kind of play around with different ones okay so we've got post created at post updated out I'm gonna go ahead and save that let's come back over to our web page a refresh and here you can see that we're pulling in the exact time string from the database so it's working really good let's go ahead and convert this to a friendly time so back to our project over here we needed we're going to be doing the date command and if you as you remember the date command basically there was a string that we pass in and we tell it what format to convert it to and the second parameter was the time stamp that that we're converting into a friendly format so the actual time stamp we want to work with this again is the string so we need to go STR to time and then that will allow us to convert it to a UNIX timestamp so let's go ahead and do the exact same thing here we're going to do date and then I'm going to an empty string right now and then STR to time and then we'll just close this off like that perfect okay now we need to actually put in the string the format that we want to work with now in order to do that we need to go over to the PHP website I'll link this in the description as well but come over to PHP or you can just google this just do PHP date that's what I always do and then it will come up and you'll see the date manual and you can this shows you exactly what I was working with and keep in mind this is actual PHP this isn't really label this is actual like raw PHP but that's the beauty of labels it's built on top of PHP so anything you can do with PHP you can do with label do you see the thing and because of the way blade works we can actually output raw anything we don't have to do blade helpers all the time we could just use these blade things here to actually run PHP so that's what's really cool we're actually running a PHP function okay let's come back over to our PHP project website and then down here at the bottom you can see the formats that we can create so what I want to do is we're going to just go ahead and put like the month in like a friendly format like say if it's Marg we want to do March but we're providing to the abbreviated version so like ma are and then we'll do the date , the year and then we'll just do the time and probably forget about seconds we'll probably just do minutes and our hours and minutes so what we want to do here is we need to find the months so you can see here that these are all the ways to represent days and then this is how you represent weeks is how you represent months so we want to do the abbreviated friendly versions of months which are these ones right here so like jam J is represented as J a and December is Dec so in order to represent that we want to do the capital M and you tells you here it's a short textural representation of a month with three letters okay so we want to do M so let's come we're gonna this is going to be kind of weird but we'll just do here in our string we're going to do capital M right then we're going to give it a space because when we format this out we wanted to represent those three three letters and then we want to do the day of the month so the day of the month is up here we had day and it says here day of the month with leading zeros we don't need leading zeros because this is going to be friendly for humans and humans don't need leading zeros so by the way leading zero is like if it's the first of the month you have the zero one we don't need that we just need this so day of the month without leading zeros it's a J so let's come over here and we're just going to do lowercase J then a comma then a space and then we'll do the years so here this tells you whether it sleepy or not we just need four digits full numeric representation of the year its capital y okay so over here we do capital y and then we can do I'll just do a space that's fine for me and then we'll do I'm just the the hours and days so come up down here probably let's see time zones time right here 12 hour format without leading zeros let's just do that so we'll just do a Jeep and you can really get technical here if you want do ours well let's just do that so hours and minutes with leading zeros so H and I so let's come back over here one last time and we're going to do capital H : because it's a time so we're going to do a colon and then lower case I and then this should give us what we want I'm gonna go and just copy this we want the same format down below here so copy and paste save let's come back over to our project let's refresh ah we get an error what is our error this is not good guys because I did not this will be embarrassing if I can't figure out what the problem is because it's live I honestly do not know okay yep there's the problem alright so we missed out a special parenthesis the most common error in the world parenthesis guys you have a careful they're always messed with you alright so basically we open parenthesis here we close we didn't have a closing we opened it here closed it but didn't have a second closing so anyway makes you have to bomb parentheses at the end kudos to you if you caught it before I did good job all right so now let's go ahead and try this again come back with our project refresh sure enough we get the right thing this is weird so this is actually 24-hour format in I'm since it just depends where you are in the world I'm in America so we are we generally use 12-hour format so anyway in 12-hour format we should have done what we do here it was lowercase H that's what I should have done for this just depends where you at obviously the format that you want to do and then also I forgot p.m. so because of 12-hour format we need to do a.m. and p.m. but if you don't need that if you're doing 24-hour format probably doesn't matter so I'll just do lowercase so lowercase a for lowercase a.m. or p.m. let's go and just make that quick change so the capital H needs to be lowercase H and then we need to do an a a lowercase a over here lowercase H lowercase a let's go ahead let's try this one more time sure enough there we go perfect that's exactly what we wanted looks great all right perfect so now the last thing we have to do is basically just make these buttons work let's send them to named routes even though they don't quite work yet we're gonna send the named route so that they're going to work as soon as we finish um the functions that these point to alright so we're gonna learn something that I don't think we've have we done yet I don't know if we've done linked routes yeah like linked to I don't think we've done that yet our link to that's Ruby okay so now let's go ahead and actually make these buttons work let's get them to be more label esque if you get my drift all right so let's come over to here so right now we're doing static HTML this works this is fine this works this does the trick but I want to show you the label way of handling this so let's go ahead just output some blade here and I'm sure why I'm struggling with that we're going to actually just execute some code here and we're going to do HTML link route like this okay this allows us to pass in a named route and get a full anchor tag just like this will be generated from this little H female helper obviously to make this work make sure you have the level collective installed that we did a few videos ago I think it was part 12 okay um so link route the first parameter of linked route is going to be the name of the route that we're going to in this case we're going to go to post edit posts plural edit because this is going to go to the edit page or post op edit so that that's what we want to do there the second parameter is going to be the value which in this case is edit okay that's the value of the anchor tag so we're just going to do edit the third parameter is any parameters that you might that you need to pass in to the URL let me explain let's come over here and let's do PHP artisan route list and you can see here that when we go to post edit that it's actually expecting a URL parameter here so we need to pass in the ID the primary ID of that it should put in this spot and in that case that's what the third so that's what the third item is we need to pass that in as an array even if there's only one item it requires you to pass it in as an array so in this case what we want to do is we're going to pass in the ID for this post for that we're working on right now so we would just do post and then ID like that okay and that'll put the ID there and that'll put it into so post slash the idea of this post / edit and that's what it will create right here now if you don't have any variables you still you need to pass in an empty array so if you were let's say you're going to just post index right here and there's no we don't need any variables for this third item if you would just need to pass in an empty array like that except you have we did the the double parentheses thing again make sure you have the right number of parentheses okay so let's do the again post ID and then the fourth and final item is another array and this is all your other options so you can do class I you can do ID you can do anything else if you have any data data attributes or something like that in this case we're going to set class equal to all these classes down here so let's just copy this copy and then we're just going to paste it as a string in here and that should do it so now we can actually delete this one and if everything works let's go ahead and save this and come back to our project refresh and everything worked except we have an extra parenthesis for some curly braces probably just means we yet we here's that I don't know how it got out there but anyway so that's what caused it so otherwise it's working I'll just review just I didn't save it but let's go ahead just do the exact same thing here so I'm going to go and copy and then I'm going to paste it over this one so again this HTML link route allows you to give it a name drought and then it generates a whole anchor tag for you so this is kind of the more level way of making a link let's do delete and then the only other thing we have change here is primary to danger so it's red and I'll post dot D destroy I think let me look real quick yep so the name drought here is post destroyed it's good to look have your routes open so you can see what they are so post destroy and do we need a URL we do need a item but we already have that it's being passed in as well okay so this should work let's go ahead and just refresh sure enough we've got it working and you if you look down here in the corner you can see that it's going to post - 13 - edit and sure enough we're on post 13 so that's exactly what we would expect same with delete we're going to send a delete request to post slash 13 that should delete the post okay so anyway that is basically all we're going to do for this video there's not really anything else to do for this page so we're basically done here we've finished the post show in the next video we're going to do post index where we show all the posts that we have it allows you to kind of kind of mass manage all the posts together okay now I hope you guys had a good time on this video this is a little different than some of my past videos because like I said I'm going to be swamped tomorrow and I know that I promised to get you guys videos more often in my last FAQ page and so I wanted to get you some more of them and of course I've been getting great feedback and that just kind of lets me know you guys love the videos and want more of them so I appreciate it awesome very much this is kind of my way of saying thank you I wanted to throw together a quick video because I knew I couldn't do a full video those take quite a bit more time but I've got a whole bunch of appointments tomorrow and I know I'm gonna be I've got to leave at like 8 a.m. and I'm not going to get back till 9 or 10 o'clock so we've also got the anyway I don't need to bore you guys with my life um anyway I've got some some exciting stuff I love going when I heard things is going to the livestock auctions I go every Tuesday and anyway we bid on livestock and stuff and so anyway got that tomorrow and then I've got a bunch of work stuff to do as well and it's just going to be too busy so I wanted to throw together a quick video today for you and I hope this is definitely a different format this is going to be this is kind of a more raw and like original format where just like me sitting in front of the computer and just working and doing with you without any of the fancy edits or without a script or anything like that kind of a plan I just kind of went for it and I hope that that was something is interesting to you guys I'm not saying that they're all going to be this way but I might start mixing a few of them in because it's kind of fun I kind of liked how easy it was to just kind of do this and I can joke around a little bit more have a little better time and you guys can kind of see my mistakes too there were several points there were kind of like kind of bumped up a little bit and you guys can kind of see how I work around those which i think is also really good to see how programmers work when I first started programming I kind of assumed programmers were perfect and it wasn't until I started watching other programmers that I realized that they do a lot of the same stuff that I do that I kind of felt guilty for for example I would go you know you google stuff all the time and I would feel really guilty and real programmers whatever a real programmer is who knows what that is but anyway people that I really respected that were programmers did the exact same thing that I did and I was shocked and so an example here is looking at PHP date I used to be like force myself to try to memorize it when I was first getting into programming let me tell you guys it's a waste of time every time you're programming you probably have access to the Internet and you're going to be able to just access those Docs as you know easily a side note I shouldn't mention there is an app I'm going to do a review about an app I don't have my iPad here it must be in another room but there's an app you can get for your iPad that's called - I think it's called - I need to look and it basically allows you to download all of these documentation so the label documentation Ruby on Rails documentation PHP documentation you can actually download these onto your like iPad and you can view them without internet in Internet connection which is pretty cool so I'll do a review on that app as well at some point after as a side to this series not necessarily part of this series but I just think it'll be relevant for you guys and that's another way if you know you might not have access to Internet you can use something like that it's an iPad and I think it's on the iPhone as well and it's called - I believe but don't quote me on that and let's just look real fast - iPad app let's see maybe I'm completely crazy oh I spelled it wrong that'll that'll do it for you - iPad app and what's it documentation maybe programming will just throw some keywords in here why can I not spell tonight okay here it is I think this must be it - this is it guys okay I'll do a review about this app but if you guys want to go ahead and take a look at it now this is a quick way to get into so there's one for - and then there's one for your computer and I actually think I have this go to the app store real fast I think I have this I do I just need to install it I had it on my other computer I'll go ahead and do this I got a fresh computer and so I haven't done it yet anyway side note basically there's one for iOS there's one for OSX so sorry Windows guys I'm sorry I really I just don't spend enough time to know some of the way all the windows tips and tricks if you guys have them share them below and I'll pass it on to everyone else as well but basically iOS and OS X this is a cool app that lets you download documentation like let's see here look at all these documentation and framework CoffeeScript code igniter like levels in here I know for a fact so oh s X is in here I know levels in there Emmit which is something we were using today with sublime I'll talk about another time that's in here foundation font awesome is in here JavaScript just everything like there is so many sass which will learn and some other will do some videos about sass my sequels in here and sequel I just everything that you would need is literally in here and you can download only the ones you need because they take up like a cup like some of them are like 30 40 megabytes some are like 100 megabytes so you just want to do the ones you'll actually use like you don't know I don't even know what salt stack is so you know I'm just no point me installing the documentation for that anyway the nice thing about this is it has all the documentation for these frameworks and you can install it for offline use and that's really handy like here's the PHP one for example so you can install the entire PHP documentation which is all of this and you have it available for offline use so I actually have actually I was surprised at how many of the viewers are actually from countries like the Philippines and India and stuff like that and awesome guys first of all it's great to have you here it's I I think it's cool to kind of get you know people outside of the of the US working with us and anyway so I was working to the guy in the Philippines and up until very recently actually we worked together for like four or five years and he would lived in the Philippines and he had outages on his internet all of the time and he's actually one of the past me onto this because he's like in hid where he lived in the Philippines which is not Manila by the way which I know is the capital I'm pretty sure he lived in like a more rural area as what he had told me I don't remember the city and but he said like his Internet's really unreliable and so he would use this app because that way he can continue to program with and have access to the and he's one of the programmers that I kind of respected and he would have access to the documentation which you need as a programmer without needing internet access and so that was one way that he got around it so if you kind of have if you're live in an area maybe that's a little tougher to get consistent Internet and that's something you worry about that but this might be something you want to look into is this app called dash and I'll do a full will do a full app it'll be kind of fun we'll do something I want to do some fun stuff guys I've been getting a chance to really meet you guys and when I first started this I thought I just kind of teach you guys some stuff and just kind of you know be cool but then a lot of you guys been email me and tell me what you're working on and stuff like that and hit me up on Twitter and talk and tell me what you're doing and I think it's awesome guys it's been really fun trying to get to know you guys and help you guys out and stuff like that and I'm super busy right now with work so I can't a lot of you guys been asking for me to help you with like do some significant help with some of your projects and unfortunately I can't do like taking on a significant project but like if you guys have little bugs and stuff here and there I've been like a lot of people email me those like I'm happy to help you guys with some of those things that just take a few minutes or you know less than an hour but I can't don't join any major projects right now that you know require lots of time I've got a lot of my own stuff going on but for the little things guys hit me up let me know what you're working on I'd love to give you guys a shout out I got like three four thousand people on Twitter right now so followers and so I don't know if that's of any value to you but if you guys are releasing a new like web app or something hit me up let me know and I'll I'll give you guys a shout out to at least my followers for what it's worth I'm not saying I'm some celebrity but it might be it might get you a couple users you know um so for what that's worth let me know but it's been really good to let you guys kind of to get to know you guys better so I want to do some more of these raw videos original videos so you guys can get to know me better as well so that's kind of why I wanted to do this video today alright I babbled on long enough for those of you guys that have stuck in this long this video because of my jabber has taken way longer than I wanted it to so those you guys that stuck to it thanks so much it's great to have you I leave a like below subscribe you probably already have if you've listened to me this long I'm assuming you're subscribed otherwise if you guys would have shut me off long before so I'll talk to you guys tomorrow see if this video is going to come out for me it's tomorrow for you this will be today and then I'll hit you guys up on Wednesday at least in the u.s. for when it'll be Wednesday and we'll do the video about post index and that'll show all of our videos all of our posts that we have and allow us to kind of edit them in bulk and do some stuff like that so that's what we working on on Wednesday so that's coming up and I'll see you guys then thanks a lot bye
Info
Channel: DevMarketer
Views: 43,059
Rating: undefined out of 5
Keywords: laravel, database, php, code, tutorial, how to, beginner, best
Id: tXq4J2siGew
Channel Id: undefined
Length: 46min 45sec (2805 seconds)
Published: Tue Feb 23 2016
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.