Laraish - A Laravel Wordpress Theme

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey there what is going on my friends in this video I want to show you a package or actually it's a wordpress theme called lera ish and what this allows you to do is it gives you the power of laravel inside of a wordpress theme so if you've been doing web development there's no way around it you're gonna have to use WordPress one way or another and some people hate it some people love it I've been working with WordPress for a long time and then I eventually moved over to laravel and that's my main PHP framework so it's nice if you have familiarity with laravel to have the power of laravel inside of a wordpress theme and that is exactly what this github repo offers so I'm going to show you how to install this and get it all set up on your machine so first thing we want to do is we want to obviously download a fresh copy of WordPress you okay and after we've done that we can go ahead and just paste this into our site's folder now that did not work let's go back to those downloads put that in the site's folder okay so inside of our sites folder we have the WordPress folder that I'm going to rename lera ish okay so we have a wordpress enabled let's go ahead and create a new database I'm going to add a new database and just call this Lera Sh and after I've done that I can go ahead and open up my WP config and add my database credentials actually we need to rename the WP config sample so we will do that there and the database name Lera ish and my user is root and empty password okay so if we go to layer ish dot test then we can set up our WordPress install John Doe I'm just gonna set a password that's password yes confirm that week password oh you must provide an email John Doe I'll calm good enough okay so now we have our WordPress install go to Larry's test and it has the default theme which I've it's been a while since I've actually worked with WordPress so I don't know what their default theme looks like but this is it right here and we can go to our WP admin and log in with our username and our password okay so now that we have WordPress installed we can now install our laravel a wordpress theme so if we come to this repo and I will post this below the video we can go ahead and scroll down and see how we can install this and this is that we can do composer create project and we can run this command and then the theme that we want to name it and we're just going to name it Lera Sh so if we go into the wp-content folder and we go into the themes folder okay so now we want to run this command inside of our themes folder and we're going to call our theme Lera Sh so after we have done that we can then go ahead and go back to our code editor inside of our themes folder we have this new theme called lair ish and if we explore the contents of that folder you can see that it looks like a laravel application so if you're familiar with laravel this will seem very familiar and you can see go to resources views and you have all the goodies that you expect with laravel inside of a wordpress theme so let's go ahead and enable this theme and the first thing is first we can look at the style dot CSS and this is where you will change your theme name the author and just information about the custom laravel theme that you are creating so now if we go back to our admin appearance and themes we now have this new theme right here that we can say activate and then we go back to the home page and you can see that just has a learish kind of looks like the splash page or the home page for a bling Clarabelle app but check this out we can go inside of our routes web dot PHP and you can see if we scroll down here the home will link to this specific controller and method and we have the single page 404 and the specific page so what we could do here is we could create any route so I could say this is awesome and I could even pass that a closure and then echo out laravel rocks so now if we go to our application slash what I say this is awesome then we do not get that page and what is going on there let me see so okay that's actually just going to the Home route so we have to I think they actually say it up here that we need to put any routes that we want to be created above these routes right here so let's try this again we go back we reload and now you can see that we have just hit a laravel route and equit the contents and the cool thing is if you look at the home controller or even the single controller right here so let's say generic slash single [Music] this will then load a single post so somebody can create a new post you can then go to your resources views generic single and you can customize the way the single post page looks and you can pull in all the stuff that you would you really like with laravel inside of web pack using tailwind you can use Alpine you can use everything that you normally use inside of laravel inside of a wordpress theme so the content and marketing team want to use WordPress and you're trying to persuade them like hey maybe we should you know check out laravel that's what I'm really familiar with but they're really comfortable with WordPress so they get the final say and you unfortunately have to work with WordPress but now with this theme you can actually use the power of laravel and all the awesome features that laravel provides inside of a wordpress theme so the content team is happy because they're using WordPress and you are happy as a developer because you are using laravel
Info
Channel: devdojo
Views: 6,044
Rating: 4.9200001 out of 5
Keywords:
Id: T1WoYWs0ppM
Channel Id: undefined
Length: 7min 10sec (430 seconds)
Published: Thu Jul 09 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.