Laravel 5.2 PHP Build a social network - Setup & Introduction
HTML-код
- Опубликовано: 30 сен 2024
- Build a complete application with the PHP framework Laravel! This video provides a short introduction and explains how to setup your Laravel project.
Complete source code: github.com/msc...
Complete Laravel-course on Udemy: www.udemy.com/... (Coupon: RUclips1)
In this course we'll build a neat little social network and cover the basics of developing with Laravel.
To start developing, you need a fitting development environment. You may set one up using MAMP (www.mamp.info/), just follow the instructions on the page. Alternatively give a cloud-based IDE and workspace like Cloud9 (c9.io) a try.
You can follow me on Twitter (@maxedapps), Facebook ( / academindchannel ) or visit our Website (www.academind.com).
See you in the videos!
I've watched the whole tutorial and came here to say it's amazing. Unlike many others, the author seems to spend a lot of time on preparing lessons before recording them, that's why he doesn't repeat himself, doesn't spend user's time whatching him making mistakes and thinking on how to solve them (other Laravel authours do it). He also uses Ajax requests so you can learn about it too.
I recommend this course to anyone new to Laravel.
Thanks so much for your amazing feedback Sergey! I indeed try my best to help you all and provide the content as structured and prepared as possible, great to read that you like that.
Max , thank you very much, you are great at this, keep on teaching!)
I definitely will! :)
Wow, I mean WOW, without any doubt The best Tutorial there is. Atleast for me
Many, many thanks for those amazing words Toomas, I'm happy that you're enjoying it! :)
Very thoughtfully done video. Thank you very much for the effort.
Happy to read that you like it Deepak, thanks a lot for your comment!
Your tutorial is amazing. Very detailed. Looking forward to finishing the entire site.
Cool to hear that! I'll keep going!
please do, I taught myself in a difficult manner, but seing this last night, it all made sense why things were working the way they were working, even the ones I ignored..lol, handsup ..
I definitely will! It's really great to hear that all this stuff is helpful to other people :)
Hello everyone I just want to share with you my Laravel starter using version 5.4
It is including : Sentinel, Crud Generator,
Laravel 5.4.x
Twitter Bootstrap 3.x
Back-end
Automatic install and setup website.
User management.
Role management.
Dashboard.
Gentelella Dashboard Ready.
Front-end
User login, registration
soon will be more...
Packages included:
Datatables Bundle
Sentinel
Crud generator
Check out: www.rolandalla.com/laravel-5-4-advanced-starter/ Github: github.com/roladn/laravel-sentinel-crud-starter
The course is no longer available to purchase on the Udemy platform. Do you plan to make an updated version? Thanks.
At the moment I have so such plans to be honest, but this can always change in the future.
Keep it Up, thank you.!
I'll do my best ;)
very good lesson ;
what is IDE
Many thanks for the great feedback! I use PHPStorm by Jetbrains
Are you using PHP Storm?
Yes this is PHP Storm see the top bar.
Do you suggest me best IDE for Laravel on window which give list of all function classes etc like your IDE
I can only share my opinion of course, but I really like PHPStorm by Jetbrains. It's not free though.
For reference. I know you have found a solution within the 3 years you have posted this question. With a small config VSCode will do good enough. medium.com/@rohan_krishna/how-to-setup-visual-studio-code-for-laravel-php-276643c3013c
Which IDE are you using?
I use PHPStorm by Jetbrains
Hey i wached some of ypur laravel videos on chanell caled TheWebsiteBuilder and that chanell got banned , it was videos about laravel for begginers about of 70 videos pretty you puted laravel in Cloud c9 ide ... can i see them again ?
sorry for my bad english
No, these videos are part of a paid course i created, which is the reason why I made sure that this channel got banned. I don't agree with sharing my content on RUclips ;)
Thanks anyway i watched most of them on unofficial chanell , it was a good series dammit if i knew i would download them :D
You can watch it officially for only $10 here: www.udemy.com/modern-web-development-with-laravel/?couponCode=DSC_50
angularjs + laravel would be good
+Tariq Sajid
Haha, good thing I currently have series about both frameworks on this channel. Pretty likely I'll do an Angular 2 + Laravel series
i really want to see that
i've just strated, and i've got the error message Whoops, looks like something went wrong.
I need a bit more information ;) At least the complete error message
it's ok i've resolved the probleme, thank you
In 8:09 min in the video I am stuck. I cannot get the laravel page to open in my localhost/laravel/public/- (Object not found!, error 404), been stuck here for day's. Works good on my windows computer but not on my Mac. I am using PHP Storm and trying to follow your steps to the letter. I looked in the description for the useful links to help with the set up, cannot find what I need to get this to work. Thank you for your help. Gabe.
I guess you have to fix your default PHP interpreter check this out
- stackoverflow.com/questions/19704412/phpstorm-7-dont-find-php-interpreter-on-windows
then get into that URL :
- localhost:63342/laravel/public/
if it doesn't work right click on public/index.php then run it as PHP script
I am French but I understand perfectly what you say, thank you very much for this wonderful tutorial!
woow. this one of the best tutorials i have ever seen. I really like how you have organised your teaching environment. It looks like you are seated and have a giant screen projected at your back. It makes we the : should I say students feels as if we are in a real classroom. With you zooming in and all that. Also like how you explains, taking your time to go through.. Man.... this tutorial is insane.
Many, many thanks Elvee, that's really great to hear! :)
Doing this alongside your Udemy course man, in my final year of college and your courses are what is helping me develop my final year project! Just wanted to post to say thank you, along with some encouragement to continue what you're doing because its both extremely helpful, and awesome! :)
That's so awesome to hear Luke, I'm really happy that all this content is helpful to you! Thanks for sharing your great feedback!
Is this still relevant in 2019?
now we have laravel 6.0
ooooo! you really scare me with that "HEY!!!!" But nyc tutorial and I really like it
I was like HEEEEEYshityoufuckingstartledme
Already Subscribed. Great free tutorials for Laravel. Keep up the great work. :) I don't know what's wrong with the person who disliked it.
Great to have you on board Subhadeep! :)
@@academind Hey Max! I see you are no longer accepting enrollment for your Laravel course on udemy, anything you recommend instead for server-side web programming?
This needs to be on Udemy, there is a void in good Laravel courses on Udemy. The "best selling" Laravel Udemy course is an unorganized mess of various mumbo jumbo. It's terrible.
But this... this is great, and you should be making money off of this
Yes udemy barely has good courses for laravel. The main place to learn is laracasts and codecourse. Brad Traversy has some great laravel courses as well.
Yeah this tut brought me back to learning laravel. I had tried going thru some tut i found on youtube about 2 yrs ago and it was nothing close to understandable. I gave up and went back to my wild ways of manual php coding. I got tired of it and came back to learn and bumped onto this. I must say many thanks for this. Clear and concise. It made everything easier to understand.
Wow, amazing feedback, thanks a lot! :)
Sir, While i'm setting the laravel i found an line in the command promt.." THE COMPILED CLASS FILE HAS BEEN REMOVED." Whats the meaning of it.. Does it create any disturbances while creating the project files and creating.. How can i solve it.. Please tell me..!!
please am using laravel 5.4 ion windows machine the turorials is not working am on the third video now errors keep poping
MethodNotAllowedHttpException in RouteCollection.php line 218: what will i do please help i really need to learn laravel project well
thanks for your efforts,I have a problem that @extends @section ......., are not recognized ,when i try them it seems like they are not part of the php code ,i don,t now why????
Awesome. Keep up the good work. Comprehensive.
+nsoimaru
Thanks a lot!
Hi, Do you have any courses for Laravel on your site or udemy, I could see that udemy course is no longer accepting enrollments.
wow you are a brilliant teacher sir i liked your explanation i m not, native english speaker but the way that you are explaning it i hope i will learn alot from you .from one week i was serching about good laravel tutorila finally i found it.thank sfor your brilliant tutorial
- via YTPak(.com)
+Attaullah Khan
Awesome to hear that, thank you!
Hi what IDE are you using ? Following tutorial step by step
Hi, do you mind create a login with a social networks like facebook or google+? pls
Thanks for this nice video. But please, how do we install it on live server when we finished it?
Hi! Is it possible to use Laravel and Ionic together?
hello i'm a newbie, can i use laravel as a web application and use android studio as mobile application if i want to make an application that would cater web and android app?
I installed Laravel 5.3 and I don't have many folder. You have more. Why? I have in app only Console,Exceptions,Http and providers ..... where did u get the other folders?
Sorry but I have a trouble, when I submit SignIn datas for register in database, it redirect me about project.dev/signup.... Why ?
I follow your video and I don't understand why not react like U :(
Please can U help me ?
Laravel saved my life literally. I was wasting so much of it by using no framework. I certainly learned a lot however its a real time waster to reinvent the wheel.
i guess Im kinda randomly asking but does anyone know a good site to stream new tv shows online ?
@Terry Esteban Lately I have been using FlixZone. You can find it by googling :)
@Jaxx Mason Definitely, been watching on flixzone for months myself =)
@Jaxx Mason Thank you, signed up and it seems to work =) I really appreciate it !
@Terry Esteban Glad I could help =)
Can you tell me what is that white terminal? Where do i get it ?
I am getting in error. In your video @ 8:21, your public folder return the welcome page of larval. But in my case i get this.
"The localhost page isn’t working
localhost is currently unable to handle this request.
HTTP ERROR 500"
Please advice
Thanks
+Edmond Hobeika
That must have something to do with your local server setup, not with the Laravel app. I can't really help at this point. Make sure your server is setup correctly and consult the documentation on whichever server or stack (like MAMP, XAMPP) you're using.
Hey I'm new to this and I suck at DB, I know this is old but please answer, how can I make the db for this specific project? I'm on the 3rd video, do you have the empty db for this somewhere? I just want the archive to link it on the .env
Thanks.
Please can you make a tutorial explaining the various relationships with practical examples using laravel eloquent ? Like building a comment app or a blog post or something ???
Can i Learn Laravel from this version ? or We need upgrade the tutorial ? , and how big the difference between 5.2 and 7, thanks man , you'r my teacher
can u programm Hybridapps for IOS and Android with Laravel and PHP. And is the performance a lot worse than performance of native apps ?
Hi Max,
I am huge fan of our work, so I saw the course structure of modern web development at udemy. i like the course content but it is in laravel 5.2 and the current laravel version is 5.4 so can it be same for 5.4 or what are the major difference.
and if i tried to install the laravel 5.2 using composer create project is doent install it gives some errors and with 5.4 it installs smoothly.
so i need to make a project with version 5.4 so can you please suggest me that will this course help me ?
Thanks
Hi Mindspace, Thanks for ur nice videos. They are wonderful and highly explanatory. But pls I am stuck with the bootstrap modal with the edit. I followed your methods yet it is not working. Dont know if there is anything else I should do. I use windows 8 and localhost server.Thanks! Expecting to hear from you.
Currently following your direction we end up with Laravel 5.4 and before even finishing the first one I am seeing some differences. For instance, the only file i am seeing in views is the welcome.blade. I am pushing through anyway, but I wonder if you could address the little changes. And Thank you so much for this tutorial. I like you methodology.
"Notice: Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' in"
hie, I created the same application as you created but when i execute our first signup form it give error see below
Whoops, looks like something went wrong.
1/1
ReflectionException in Route.php line 280:
Class App\Http\Controllers\UserController does not exist
in Route.php line 280at ReflectionMethod->__construct('App\Http\Controllers\UserController', 'postSignUp') in Route.php line 280at Route->signatureParameters('Illuminate\Database\Eloquent\Model') in Router.php line 857at Router->substituteImplicitBindings(object(Route)) in Router.php line 842at Router->substituteBindings(object(Route)) in Router.php line 825at Router->findRoute(object(Request)) in Router.php line 691at Router->dispatchToRoute(object(Request)) in Router.php line 675at Router->dispatch(object(Request)) in Kernel.php line 246at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))at call_user_func(object(Closure), object(Request)) in Pipeline.php line 52at Pipeline->Illuminate\Routing\{closure}(object(Request)) in CheckForMaintenanceMode.php line 44at CheckForMaintenanceMode->handle(object(Request), object(Closure))at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136at Pipeline->Illuminate\Pipeline\{closure}(object(Request))at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32at Pipeline->Illuminate\Routing\{closure}(object(Request))at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103at Pipeline->then(object(Closure)) in Kernel.php line 132at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 99at Kernel->handle(object(Request)) in index.php line 54
Give me solution plz
As the error states, it doesn't find a UserController. Maybe your forgot to create it, got a typo in the name, didn't set the right namespace at the top of the controller file or placed it in a wrong folder.
молодец !
This is greatness. Much appreciate the tutorial. Was wondering. If one was to use Laravel to build a multi site network similar to Stack Exchange where sites are connected but unique, any suggestions on the best way to do this? Can you create a template and somehow share it over different domains for example? So that when you make a change it is updated on each site?
@Academind can you please let me know which editor are you using?
Hi , thanks very much for the tutorial, but I have noted in your development environment-Editor, when you insert coding in the controller its automatically updates the User app\..., my questions is, which development environment you are using here. please assist
Hi Michael, I'm happy to hear that you're enjoying my tutorial! I use PHPStorm by Jetbrains.
Yes sir Thank you for the tutorial coming live from SOUTH AFRICA
I am very sorry Max, for not getting your name correctly, I however have a little problem with the like and dislike link, I have been trying to change them to buttons something small bootstrap button with to make it look nice, but i have been unable to do that, it screws up my edit models and the like and unlike, can you help with that. thank you, your tutorials gave me alot of insight into laravel
Hi Olatunji,
I really can't go in-depth here since it seems to be a pure bootstrap/styling issue. Make sure to use the styles specified in the bootstrap docs/ on their page. The styles you post here seem to use font-awesome, so make sure to import that, too. (Google for Font Awesome and follow the instructions on the page)
I dont really want that signup screen for my network. So users can see the posts without logging in. What can I do?
how did you manage to get the URL in this way (projects.dev/tutorials/....) rather than localhost:8080/public..... can you help me with the setup of this
Correction : localhost:8080/laravel/public/
I simply added the respective mapping in my /etc/hosts file (on Mac). You may google for "hosts file + YOUR OS" to find more info.
I have installed laravel using the command line, how do i open it on atom if no project is displayed on atom?
where the fuck were you up until now? I wish i had this type of tutorial when i was starting out with laravel...amazing ..thank you!
+madman haha great to hear that! I'm here now at least ;)
I was unable to install laravel properly the files are incomplete?
what was the application that you were using? cant download laravel.
looking for these 2 answers.
+Tetike
I'm using composer (getcomposer.org)
make a complete laravel course on udemy
This comment is totally irrelevant to this video. I wanted to ask how to add a package in composer.json and register it.
You mean, install a new package in your app?
composer require PACKAGE_NAME (getcomposer.org/doc/03-cli.md#require)
But google is your friend here ;)
what was the application that you were using? cant download laravel.
looking for these 2 answers.
And please how do i get more of your tutorials because i just stumbled on this one while searching for more on laravel
You may browse my channel, I got a lot of tutorials there. And of course subscribing is always a great idea ;-)
I don't know if anyone has told you before but you look very much like seth rogen. :)
Haha, I heard that before ;)
Good day, please I want to know how to share articles on laravel to facebook!. Please reply me soon
haha i was trying not to see that you and seth look exactlyu the same
can you also do a tutorial on chat application like facebook chat, i have search for such tutorial with no luck. it will be very much appreciated
Hi Olatunji,
might be something I'll have a look at in the future, currently I don't have such plans though.
Max
Thank you so much for doing this. I like how you take time to explain what are you doing! You are fantastic.
Really wish someone showed from start to finish how to setup Laravel on a VM.
Try the Scotch Box, it is super simple and the front page has a tutorial on setting it up (Not about Laravel but setting it up becomes a simple matter after you read the guide).
Can somebody help me, how do I navigate my project to the browser?
if you follow laravels official documentation, after installing laravel with composer, run this command "php artisan serve" this command starts the server, then head over to your browser and type in "localhost:8000". Note: you should have a webserver like wamp installed
Thanks very much for the videos, really informative. But my problem is setting up model since an using a window environment, please I Need your help
2k19 I start to learn laravel with your help. And have you get me a point on the help where I can check all this stuffs like .container + tab make div with class. And this stuffs like 24:24 when you delete tab space. Thank you
Very nice tutorial. Do you have a github for the code so i can follow along at the same time?
+Martin Jespersgaard
Hi Martin, great to hear you like it! Yes I do have a repo (link's in the description, but here's the shortcut ;): github.com/mschwarzmueller/laravel-basics-youtube)
can still do this in lara6.*?
hello mindspace, i have laravel installed but want to correctly know how to install homestead and vagrant when developing laravel applications. I followed your tutorials "Udemy - Modern Web Development with Laravel 5.2 (PHP Framework)" and they helped me alot. thanks
That's great to hear. Regarding Homestead and Vagrant: I have some videos on that, too. You may look through my channel playlists and you'll find them!
+Mindspace I will thanks ☺
wow nice tutorial sir and your method is attractive with smiling face .
Many, many thanks Rahul, it's really great to hear that you're enjoying it :)
For those wondering why @end is not working, use @endsection...
Hello, I'm a developer myself and thinking of getting a new laptop. What do you recommend, a MAC or Windows System?
Use GNU/linux OS eg. Ubuntu good for development. ugly to look at, Super fantastic if you are man enough to use it
I personally recommend using tools like Vagrant and VirtualBox, so you can develop your app in a Linux virtual machine setup that can be used on any OS, This also helps you keep your development and production environment as similar as possible (assuming you use Linux servers in production).
I use the Scotch Box, a vagrant box made for PHP development, comes with everything you will need for Laravel development.
If you are a beginner then going this route may be daunting at first.
WOW this man is amazing Very Respected teacher Really Thanks a lot! and keep going!
+Atef Diab mohamed
Amazing to hear that! Thank you so much!
This is really great project, do you have or can you do one tutorial for CMS? thanks... that would be a great help too. I really like your tutorials, and have subscribed already, Im looking forward to you to help me, with this Sir. :) thanks a lot in advance, God Bless.
I definitely think that I will cover CMS in the future, too
Really, that would be great if that will be soon.
Hi ! I'm wondering : what is the best php framework ? Laravel, or something else ?
is it better to learn about laravel or Angular.js for a website that will need database use ? (my project is to create a website that gatters information and exercices and courses about teaching emotional intelligence to children, so that teachers can learn themselves regardless of where they are)
Angular.js is a framework by Google for JavaScript.
Laravel is a PHP framework.
The most commonly used frameworks are Laravel, PhalconPHP and Zend.
Is this tutorial still compatible with newest Laravel practices? I wish to create social network(maybe use vue.js for real time components) :)
Download same version laravel
Now I'm here i will watch all your videos. thank you
very powerful lesson video it is very simple to understand thank verymuch. please create lesson for menu(category) link to post(article) ...i hope you do it..like as wordpress menu
+NewTech Mawlamyine
Thank you! I think there are good chances something like that will appear in a future video! :)
Thank very much...
Can I use laravel on xampp? And if so how can I access it?
+Syahnur197
Hi, of course you can use it with XAMPP, you may use it in any PHP/MySQL environment. I think it's best if you have a look at this article: www.codementor.io/php/tutorial/how-to-install-laravel-5-xampp-windows
Thanks Macmillan, these tutorials are thoughtfully crafted for beginners with touch of advanced coding!!! Many thanks!
Thanks for your amazing feedback! :)
Your tutorals are amazing... Very detailed... I support your work with subscribe and with "like" on all videos you posted in this tutorial... Thank you very much for your time to make this videos :D
Awesome to read this Milos, many thanks! :)
Great Job Man! Just a question what version of PHP did you use ? 5.6 or 7? I know Laravel 5.2 is fully compatible with PHP 7, and I want to start your tutorial with newest version !!! Thanks again!
Thank you! I used 5.6 here.
I have a small question - how do you get phpStorm to automatically insert the remainder of the code when you type .conta and it autocompletes it with and the rest? Thanks tons!
That's a plugin PHPStorm ships with - it's called "emmet" (you may google it for more information). It allows you to quickly write HTML code.
Thank you very much Mindsapce! I found the culprit. It was indeed Emmet settings. For anyone else having this issue, you need to have option called "Enable Abbreviation preview" checked for this to work. It was disabled in my out of the box settings.
Mindspace /// plz tell he how i open my files in browser as an output , i m using Windows 8 , me also using php storm &xampp
Awesome! English is not my native language, and for better understanding i use english subtitles, and it write not "Laravel", but "terrible" xD
Anyway, thx a lot, you are doing good things!
Haha, that's a hilarious translation :D
Many thanks for your great feedback!
Hello guide! Can you help me? I have problem with Route it's show message like this
Route [route_name] not defined.
+chann vuthy
Well, the error is pretty clear, seems like you're using a route name which isn't set up in the routes.php file. Make sure you're assigning all the names you're using throughout your application.
Great tutorial. I am following your Angular 2 and Laravel Courses on this Channel. If you do an Angularjs 2 + Laravel 5.2 I will sure buy your course at Udemy because you are a very very good teacher. You really deserve to be paid for you great job!
+Militello Salvatore
Thanks Militello, that's great to hear and I'm really happy about it! :)
hello, i love your video. Amazing, but may i request : How to deploy laravel 5.2 into webserver/hosting especially share hosting. tq .. please help newbie :)
+windy safitra
Hi, thanks for the kind words :)
Deploying is actually pretty easy.
Copy all the code on your shared host but make sure that only your 'public' folder is inside your shared hosts 'public' folder. All other folders should be one directory above it (just like in the development environment). With this is should really work.
Really Nice video, Learnt from this . nice and cleaner explanation .
Sir, I have one question . Laravel have Auth we have authenticate and do login etc. same way i have done but as same as users table i have another table where i have saved other persons who will login to the system. I have searched over but i didnt get any thing on google. can you please provide any tutorial or link which can help me to implement this in laravel 5.2.
Thanks in Advance .
Great to hear that you liked the video! It's best if you search for "Laravel multi auth" - that should give you some useful links
We did our one of our university group project using the laravel. For that this tutorial is very helpful for us. Because this tutorial is great. We have a another project to do using cakephp. Can you please do another tutorial series about cakephp?
I'm happy to hear that this tutorial was helpful to you! I'm not an expert on CakePHP so I'm sure there are better resources out there :)
Hello chris, what if i want to do something like follow
I'm Max, but to answer your question anyways ;-) => There's something missing in your question I assume? ;)
I'm following this tutorial. For some reason my registration form doesn't turning into mobile view when accessed from a phone. Is there some settings for that?
Solved! fixed the issue
hello, i cant get the url
projects.dev
i use xampp
how to get the .dev domain for testing?
+Tetike This URL is just working in my setup of course. If you want to do something similar and use XAMPP, you have to bind localhost to that URL in your hosts file. Simply google for "YOUR-OPERATING-SYSTEM hosts file" to find out how to do that
Just wow ! .. watched tons of tutorials but your ones ...just Great !! Thanks man .
Thanks so much Toorja! :)
This tutorial really got me going with Laravel. Thank you. What autocomplete plugin do you use for your html tags? My bootstrap 3 plugin doesnt seem to be working :(
Happy to hear that this video was helpful! I use "emmet" (built into PHPStorm, but also available as plugin for sublime etc).
you really are the best \(^_^)/ thank you very much :')
No you are, many, many thanks for the amazing feedback!
Great lessons! Show us how to make Laravel + Angular 2 App!))
That's definitely something which will come in the future :)
Wow! Perfect! we will w8 it!