mediaguru's avatar

My first Laravel site

I decided to revamp an old straight PHP site of mine and convert it to Laravel as a learning project: http://utahgolfguru.com/

A few of the key things I implemented and learned on this project are routes, blade templates, SASS/GULP, Laravel's MVC, controllers, database (MYSQL), bootstrap implementation, pagination (two types), authentication, mail (broken still), setting up a Mac development environment with Valet and Homebrew, moving from .dev to production...

I still have some some work to do, like the contact form is broken.. but check it out.

0 likes
4 replies
SaeedPrez's avatar

Good job, one thing I would fix is the page title(s).. You can use Blade to give each page its own title..

Just simply do this in your master template file..

<html>
    <head>
        <title>@yield('title') Utah Gold Guru</title>
    </head>

    <body>
        @yield('content')
    </body>
</html>

And something like this in your sub template files..

@extends('layouts.app')

@section('title')
    {{ $course->name }} -
@endsection

@section('content')
    <div class="container"></div>
@endsection
2 likes
mediaguru's avatar

Thanks @SaeedPrez those are some good ideas. I will implement those on my next version!

1 like
Dastur's avatar

I can't see the code so I'm not sure if you have implemented this, but you have really slow load times. You should probably try to implement some sort of caching. If you were wondering Redis caching is the fastest. https://laravel.com/docs/master/cache.

mediaguru's avatar

Thanks @Dastur

The home page has four large high quality JPG's which could make that page load slowly. The rest should be quicker.

Please or to participate in this conversation.