Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP Laravel 4 Basics Project Setup Templates and Layouts

Laravel: Templates and Layouts, Odot?

Am I missing something? Where is this Odot file mentioned in this lecture and why is it being used and not provided? The lecture gives no clues as to where to get it. When I search for anything related to Odot (or ODOT), everything that turns up is related to Ruby. I thought this Laravel course was based on PHP. Really confused and frustrated here.

4 Answers

Good Morning Stephanie B

I will provide file for each video step soon. So sorry for any frustration. Here are the final files from the course that you can reference for now.

If you want to run these files, from the folder, you will need to do a few things first. That being said, you should just use them as a code reference.

  1. move the files to where you keep your php projects
  2. change directory in to the project folder you moved in the first step.
  3. run the command 'composer install'
  4. create your 'odot' database
  5. run the migrations
  6. If not using homestead, you can try to run 'php artisan serve'

I will have all the example files up today, by video, for reference.

Thanks Again! Hampton

[UPDATE] All example files have now been added to each video that needed them.

Thanks!

Lauren Clark
Lauren Clark
33,155 Points

It's some boilerplate code - it is a bit sucky they didn't give the code in a download link, they always used to. However, what I did is copy over the 'Top Bar' navigation code from Foundation's Site here

...and I just added some divs to make it look similar. If anyone wants to copypaste mine, here it is :) It's just to play around with.

<!DOCTYPE html>
<html class="no-js" lang="en">
<head>
  <meta charset="utf-8" />
  <meta content="width=device-width" name="viewport" />
  <meta content="IE=edge" http-equiv="X-UA-Compatible" />
  <title>Homepage | Foundation • Boilerplate</title>
  <link href="/css/foundation.min.css" media="screen" rel="stylesheet" type="text/css" />
  <script src="/js/foudnation.min.js"></script>
</head>
<body>
  <nav class="top-bar" data-topbar>
    <ul class="title-area">
      <li class="name">
        <h1><a href="#">ODOT</a></h1>
      </li>
      <!-- Remove the class "menu-icon" to get rid of menu icon. Take out "Menu" to just have icon alone -->
      <li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
    </ul>

    <section class="top-bar-section">
      <!-- Right Nav Section -->
      <ul class="right">
      </ul>

      <!-- Left Nav Section -->
      <ul class="left">
      </ul>
    </nav>

    <div class="row">
      <br><br><br>
      <div class="large-12 columns">
        @yield('content')
      </div>

      <div class="large-12 columns">
        <h2>Some Content!</h2>
        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Saepe a, numquam, necessitatibus commodi provident minus distinctio harum aspernatur qui laborum quo explicabo officiis odio magnam natus praesentium blanditiis dicta? Quidem!
      </div>

    </div>

    <footer>
      <div class="row">
        <hr>
        &copy Treehouse
      </div>
    </footer>

  </body>
  </html>

Thanks! Great workaround, but if they're going to paste code for us to follow along with, they should provide the code. Students should be able to focus on the course instead of searching for or creating their own resources to complete them.

Julien Gascard
Julien Gascard
12,818 Points

You should let Hampton Paulk know about this so he'll be able to improve his course :p.

Good idea, but I'm not sure how to do that.

Aaron Walton
Aaron Walton
3,557 Points

I have to say that I am very disappointed that this issue persists 2 months after this question was posted. At the 2 minute mark in the lesson Laravel Templates and Layouts, the instructor "pastes in some code" but there is no explanation as to where this code is from or where we can get it. This has ruined the time I have set aside to work on this tonight and I don't have much time to pursue these courses these days :(