Chapters
25 Chapters
|
2:34:05
|
Login to bookmark this video
-
Course Code
Subscribe to download the code!
Subscribe to download the code!
-
This Video
Subscribe to download the video!
Subscribe to download the video!
-
Subtitles
Subscribe to download the subtitles!
Subscribe to download the subtitles!
-
Course Script
Subscribe to download the script!
Subscribe to download the script!
Scroll down to the script below, click on any sentence (including terminal blocks) to jump to that spot in the video!
Subscribe to jump to this part in the video!
What PHP libraries does this tutorial use?
// composer.json
{
"require": {
"php": ">=8.1",
"ext-ctype": "*",
"ext-iconv": "*",
"knplabs/knp-time-bundle": "^1.18", // v1.19.0
"symfony/asset": "6.1.*", // v6.1.0-RC1
"symfony/console": "6.1.*", // v6.1.0-RC1
"symfony/dotenv": "6.1.*", // v6.1.0-RC1
"symfony/flex": "^2", // v2.4.5
"symfony/framework-bundle": "6.1.*", // v6.1.0-RC1
"symfony/http-client": "6.1.*", // v6.1.0-RC1
"symfony/monolog-bundle": "^3.0", // v3.8.0
"symfony/runtime": "6.4.3", // v6.4.3
"symfony/twig-bundle": "6.1.*", // v6.1.0-RC1
"symfony/ux-turbo": "^2.0", // v2.1.1
"symfony/webpack-encore-bundle": "^1.13", // v1.14.1
"symfony/yaml": "6.1.*", // v6.1.0-RC1
"twig/extra-bundle": "^2.12|^3.0", // v3.4.0
"twig/twig": "^2.12|^3.0" // v3.4.0
},
"require-dev": {
"symfony/debug-bundle": "6.1.*", // v6.1.0-RC1
"symfony/maker-bundle": "^1.41", // v1.42.0
"symfony/stopwatch": "6.1.*", // v6.1.0-RC1
"symfony/web-profiler-bundle": "6.1.*" // v6.1.0-RC1
}
}
13 Comments
Just want to say: THANK YOU for your great Symfony and Vue tutorials. I've learned such a lot. Much more in one single tutorial than in the last five years of learning-by-doing and self-studying. Your pronouniation is clear and distinct. And your humour is uplifting. Also, all the stuff works, no problems to follow. Downloadable code start/finish rounds it up. Keep on making such tutorials please.
Ah, thank you for the great message! We'll keep going :)
Hello, i have a big problem when i download the code. i do everything right but i have critical vulnerabilities with npm install. If i try to run the symfony server, i just have a page entirely of the color of the nav and i can't even right click. With laragon, i have a brocken page with console errors for exemple http://localhost/symfocast/public/_wdt/1f76b0 404 (not found). I tried aswell to run the webite with 8.1 version but it doeasn't change anything.
Hey @AntoineR!
Sorry about the trouble! Let's see if we can figure it out :).
That's probably ok. Well, vulnerabilities are not ok of course. But when you run
npm install, it will install the version of the dependencies when we built this project. And it's not surprising that some of those could have vulnerabilities now. Because this is just a tutorial app, you can ignore those. On a real app, you'll of course want to update your dependencies. But this doesn't hurt anything.Hmm. See the
public/in the URL? Ideally, we'd point the web server directly atpublicso that it is the document root. For example, when I run via the symfony binary, my URL would be something likehttps://127.0.0.1:8000/_wdt/1f76b0- the roothttps://127.0.0.1:8000is pointing at thepublic/directory. You CAN run a Symfony app like this, but it's not standard, and I bet it's the problem. The 404 on this URL tells me that theindex.phpfile inpublic/isn't being seen as the default script and so isn't being executed.Is there a way for you to point the web server setup directly at
public/as the document root?Cheers!
I must have missed something, but how do I pull the new code you refer to in this video?
Hey @Roy!
If you're a subscriber, you can download the course code in the upper right of this page - there's a "Download" button up there where you can get the video, script and course code :). Let me know if you have any trouble.
Cheers!
Hi there,
I completed the previous course and it went well! On downloading a fresh copy of the code for this course and setting it up as per the readme file, the website is up and everthing works, except that the audios do not play and the turbo function is also not working. Any hints as to why this could be ?
Thanks!
Hey @Gitanjali-N
Can you tell me if you get any console errors in your browser? Did you run
yarn watch? I'm guessing this problem could be related to your browser, if you try with a different one, does it work?Also, try hard-refreshing the page
Hi @MolloKhan , thank you so much for your response. Indeed, it worked in another browser-profile window!
Git Versioning
I'm keeping a git version of this course as I code along. One challenge with downloading a fresh copy of the code is that it creates conflicts in my version control. Do you have any thoughts on to address this? If the changes are code specific, I don't think it's too big of a deal as I can just update the specific code changes where they exist. Are there any package changes between the first tutorial and this one-or even subsequent ones?
Thanks
Hey robertocannella,
I'm not sure I understand your problem completely. Do you mean, you have a course code from a different (past) tutorial, and wanted to follow the current course base on the finish code of the previous tutorial? If so, that's not something we recommend. We always recommend users to download a fresh course code for each tutorial to code along with us - this way you will have the exact code as the course author has. The reason behind of this is that we always d some upgrades and minor changes between our courses, so "finish course 1 code" != "start course 2 code", always.
But if you want, of course, you can try to follow the current course base on finish course code from the past tutorial, but be aware of possible changes and conflicts that we may done between courses that you would need to resolve manually. It's up to you :)
Cheers!
can we use Carbon library in a Symfony project ?
Hi,
Of course you can! I don't see any problem with it. It's a cool library!
Cheers!
"Houston: no signs of life"
Start the conversation!