Code Monkey home page Code Monkey logo

laravel-4-bootstrap-starter-site's Introduction

Laravel 4 Bootstrap Starter Site ProjectStatus

Build Status

Laravel 4 Bootstrap Starter Site is a sample application for beginning development with Laravel 4.

Features

  • Bootstrap 3.x
  • Custom Error Pages
    • 403 for forbidden page accesses
    • 404 for not found pages
    • 500 for internal server errors
  • Confide for Authentication and Authorization
  • Back-end
    • User and Role management
    • Manage blog posts and comments
    • WYSIWYG editor for post creation and editing.
    • DataTables dynamic table sorting and filtering.
    • Colorbox Lightbox jQuery modal popup.
  • Front-end
    • User login, registration, forgot password
    • User account area
    • Simple Blog functionality
  • Packages included:

Issues

See github issue list for current list.

Recommendations

I recommend that you use Grunt to compile and minify your assets. See this article for details.

Also I recommend using Former for your forms. It's an excellent library.


Requirements

PHP >= 5.4.0
MCrypt PHP Extension

Installation instructions for the mcrypt extension are available here.

How to install

Step 1: Get the code

Option 1: Git Clone

$ git clone git://github.com/andrewelkins/Laravel-4-Bootstrap-Starter-Site.git laravel

Option 2: Download the repository

https://github.com/andrewelkins/Laravel-4-Bootstrap-Starter-Site/archive/master.zip

Step 2: Use Composer to install dependencies

Option 1: Composer is not installed globally

$ cd laravel
$ curl -s https://getcomposer.org/installer | php
$ php composer.phar install

Option 2: Composer is installed globally

$ cd laravel
$ composer install

If you haven't already, you might want to make composer be installed globally for future ease of use.

Some packages used to preprocess and minify assests are required on the development environment.

When you deploy your project on a production environment you will want to upload the composer.lock file used on the development environment and only run php composer.phar install on the production server.

This will skip the development packages and ensure the version of the packages installed on the production server match those you developped on.

NEVER run php composer.phar update on your production server.

Step 3: Configure Environments

Open bootstrap/start.php and edit the following lines to match your settings. You want to be using your machine name in Windows and your hostname in OS X and Linux (type hostname in terminal). Using the machine name will allow the php artisan command to use the right configuration files as well.

$env = $app->detectEnvironment(array(

    'local' => array('your-local-machine-name'),
    'staging' => array('your-staging-machine-name'),
    'production' => array('your-production-machine-name'),
));

Now create the folder inside app/config that corresponds to the environment the code is deployed in. This will most likely be local when you first start a project.

You will now be copying the initial configuration file inside this folder before editing it. Let's start with app/config/app.php. So app/config/local/app.php will probably look something like this, as the rest of the configuration can be left to their defaults from the initial config file:

<?php

return array(

    'url' => 'http://myproject.local',

    'timezone' => 'UTC',

    'key' => 'YourSecretKey!!!',

    'providers' => append_config( array(

        /* Uncomment for use in development */
        //'Way\Generators\GeneratorsServiceProvider', // Generators
        //'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider', // IDE Helpers

        )
    ),

);

Step 4: Configure Database

Now that you have the environment configured, you need to create a database configuration for it. Copy the file app/config/database.php in app/config/local and edit it to match your local database settings. You can remove all the parts that you have not changed as this configuration file will be loaded over the initial one.

Step 5: Configure Mailer

In the same fashion, copy the app/config/mail.php configuration file in app/config/local/mail.php. Now set the address and name from the from array in config/mail.php. Those will be used to send account confirmation and password reset emails to the users. If you don't set that registration will fail because it cannot send the confirmation email.

Step 6: Populate Database

Run these commands to create and populate Users table:

$ php artisan migrate
$ php artisan db:seed

Step 7: Set Encryption Key

In app/config/app.php

/*
|--------------------------------------------------------------------------
| Encryption Key
|--------------------------------------------------------------------------
|
| This key is used by the Illuminate encrypter service and should be set
| to a random, long string, otherwise these encrypted values will not
| be safe. Make sure to change it before deploying any application!
|
*/
'key' => 'YourSecretKey!!!',

You can use artisan to do this

$ php artisan key:generate --env=local

The --env option allows defining which environment you would like to apply the key generation. In our case, artisan generates your key in app/config/local/app.php and leaves 'YourSecretKey!!!' in app/config/app.php. Now it can be generated again when you move the project to another environment.

Step 8: Make sure app/storage is writable by your web server.

If permissions are set correctly:

$ chmod -R 775 app/storage

Should work, if not try

$ chmod -R 777 app/storage

Step 9: Start Page (Three options for proceeding)

User login with commenting permission

Navigate to your Laravel 4 website and login at /user/login:

username : user
password : user

Create a new user

Create a new user at /user/create

Admin login

Navigate to /admin

username: admin
password: admin

Application Structure

The structure of this starter site is the same as default Laravel 4 with one exception. This starter site adds a library folder. Which, houses application specific library files. The files within library could also be handled within a composer package, but is included here as an example.

Detect Language

If you want to detect the language on all pages you'll want to add the following to your routes.php at the top.

Route::when('*','detectLang');

Development

For ease of development you'll want to enable a couple useful packages. This requires editing the app/config/app.php file.

'providers' => array(
    [...]
    /* Uncomment for use in development */
//  'Way\Generators\GeneratorsServiceProvider', // Generators
//  'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider', // IDE Helpers
),

Uncomment the Generators and IDE Helpers. Then you'll want to run a composer update with the dev flag.

$ php composer.phar update

This adds the generators and ide helpers. To make it build the ide helpers automatically you'll want to modify the post-update-cmd in composer.json

"post-update-cmd": [
	"php artisan ide-helper:generate",
	"php artisan optimize"
]

Production Launch

By default debugging is enabled. Before you go to production you should disable debugging in app/config/app.php

    /*
    |--------------------------------------------------------------------------
    | Application Debug Mode
    |--------------------------------------------------------------------------
    |
    | When your application is in debug mode, detailed error messages with
    | stack traces will be shown on every error that occurs within your
    | application. If disabled, a simple generic error page is shown.
    |
    */

    'debug' => false,

Troubleshooting

Composer asking for login / password

Try using this with doing the install instead.

$ composer install --dev --prefer-source --no-interaction

License

This is free software distributed under the terms of the MIT license

Additional information

Inspired by and based on laravel4-starter-kit

Any questions, feel free to contact me.

laravel-4-bootstrap-starter-site's People

Contributors

andrew13 avatar andrewelkins avatar bencorlett avatar bertiful avatar bpierre avatar chrispappas avatar codler avatar crynobone avatar cviebrock avatar daylerees avatar ericlbarnes avatar franzliedke avatar gcphost avatar hirokws avatar jakobud avatar jasonlewis avatar jesseobrien avatar kapv89 avatar kbanman avatar lancepioch avatar loic-sharma avatar mikelbring avatar msurguy avatar nekwebdev avatar pedroborges avatar sparksp avatar taylorotwell avatar tobsn avatar tommyc81 avatar vespakoen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

laravel-4-bootstrap-starter-site's Issues

Error since recent update

[2013-03-17 22:45:28] log.ERROR: exception 'Illuminate\Session\TokenMismatchException' in /Web/tgc/app/filters.php:65
Stack trace:
#0 [internal function]: {closure}(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))

Any ideas? :/ I'm a bit stumped, think it might relate to 3a39c60

Class is redeclared during migration causing error

Hi there,

On line 4 of 2013_05_05_024934_entrust_permission_index.php the class name ConfideSetupUsersTable is being redeclared from the file 2013_02_05_024934_confide_setup_users_table.php

Changing the line to class EntrustPermissionIndex extends Migration { fixed the error

SQL error on user information update

If you submit the form at user/create you get an error about the username column not being in the SQL (because it's not in the form).

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'username' cannot be null (SQL: insert into users (username, email, password, confirmation_code, updated_at, created_at)

If you add the username in to the form and submit it, there is no error but if you change the email address of the user (which should be a valid action?) it creates a new record in the database rather than updating the user details with the new email address.

Incorrect method call on (Ardent) User object in AdminUsersController.php

When creating a new user (as the admin user via the admin dashboard), if any validation errors occur as a result of breaking the default validation rules in ConfideUser.php, a BadMethodCallException is thrown, as the getErrors() method does not exist.

As per the Ardent doccumentation (https://github.com/laravelbook/ardent#errors), line 79 of app/controllers/admin/AdminUsersController.php should read:

$error = $user->errors()->all();

instead of:

$error = $user->getErrors()->all();

Andrew, I am getting this error

c:\xampp\htdocs\Laravel-4-Bootstrap-Starter-Site>composer install
Loading composer repositories with package information
Installing dependencies

  • Installing jasonlewis/basset (dev-develop f0b4273)
    Cloning f0b4273c954365bef0eb4401c6157da20c80507e

    [RuntimeException]
    Failed to execute git checkout "f0b4273c954365bef0eb4401c6157da20c80507e" && git reset --hard "
    f0b4273c954365bef0eb4401c6157da20c80507e"

    fatal: reference is not a tree: f0b4273c954365bef0eb4401c6157da20c80507e

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [-
-no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader]

Any Idea why?

Create Account goes to /user - Error Missing argument 1 for UserController::postIndex()

Hey Andrew,

Note: I have just done a fresh install following your instructions.

Issue:
When I click Create Account on Sign Up page, it goes to /user

Error Message:
Missing argument 1 for UserController::postIndex()
Line 24

I wish I could provide a solution for you, but I'm new to Laravel.

What I find strange is that the function does not ask for any parameters/args. :-/ [scratches-head]

Assigned roles bug

Admin can't post comments (I do have enabled comments for admin)

You don't have the correct permissions to add comments.

Wrong URL::to type

On line 14 in user/login.blade.php
is only one " : " instead " :: " `

`

please change the action to `

`

The same problem results from the storage/views/ when you first try to enter this URL http://my-laravel-4/user/login
In that view is also missing one " : " in the action method.

User update form redirects to sign up form if form error

If you user the /user route to display the update form, if there is an error it redirects to the create form.

I think the issue is that the registration form and update form both post to /user. The redirection to /user/create is probably there because of the registration form validation but doesn't work for the update form

Not sure on best way to fix... maybe separate post processing for update form, or have a conditional redirect depending on the form id or something?

Cancel on edit blog typo

The URL on the cancel button points to admin/blog instead of admin/blogs. Line 98 of views/admin/blogs/edit.blade.php should be <a class="btn btn-link" href="{{{ URL::to('admin/blogs') }}}">Cancel</a>

Pagination in admin/users view

The three brace notation on the pagination command on line 54 of views/admin/users/index.blade.php seems to break pagination (actual html is displayed on the page). Changing line 54 to the following {{ $users->links() }} fixes the problem.

Small change to help with debugging

Hi Andrew

Thank you for adding this great starter kit. It shows exactly what to do to achieve simple CRUD functionality in L4.

Just a small issue. Because of your custom 403, 404 and 500 pages, development is very difficult since you never see the actual error (and a developer will miss out on the awesomeness of the debug console).

To fix it I simply added this line to app/start/global.php on line 56 after Log::error($exception)

if (Config::get('app.debug')) return;

That way in debug mode the developer can still see debug messages.

Hope this helps!

Bootstarp img (glyphicon) not working

Hello Andrew, I'm new to both your project and Laravel, so I'm not sure it's really me or it's because I use Windows, but the bootstrap icons don't appear on all buttons and going with firebug it also shows that the file failed to load current URL. Everything else seems to work.

Oh also a quick suggestion, you should put the '/admin' somewhere in the top men, we shouldn't have to type it to get in the admin section, apart from that..well done :)

File String.php in /Helpers conflicts with php5-tidy

I found a little problem,
If you have installed php5-tidy and try to run the application, an error would occur on the Strings.php file, saying that the class Tidy is not found.

Seems like you miss a file or maybe the validation of Tidy should be done in another way.

I just "fixed" it by uninstalling tidy. I guess you can also delete the "first part" of the IF in the Strings.php file and use the other parser you did.

Can't create new blog post?

I don't know if this is broken only on my local environment but I can't create a new blog post. Directs me to server error:500 page. Anyone else have this issue?

Error downloading dependencies

Hello everybody, I cloned this repo and ran composer install, but as soon as it shows Installing dependencies... Throws this error:

[Composer\Downloader\TransportException]
The "http://packagist.org/p/zizaco/confide$3f4749d08a0176316d5506d68dda1c69
ad70ef51f52efd7e1e904fd7d1342ba8.json" file could not be downloaded (HTTP/1
.1 404 Not Found)

and everything stops. I know it's because that url indeed is wrong, because instead of "/p/" is "/packages/" and also de md5 is wrong. But why is this happening? Thanks everyone.

composer update failed

When I run: composer update the following exception is thrown.

ErrorException: Runtime Notice: Declaration of BigElephant\Presenter\View\Environment::make() should be compatible with Illuminate\View\Environment::make($view, $data = Array) in /Users/dawid/server/o2c/vendor/bigelephant/presenter/src/BigElephant/Presenter/View/Environment.php line 9

Sorry I just realised it's a problem with "BigElephant" package not your starter.

Issue after fresh install

I received this after a fresh install.

{"error":{"type":"ErrorException","message":"Runtime Notice: Declaration of BigElephant\Presenter\View\Environment::make() should be compatible with Illuminate\View\Environment::make($view, $data = Array, $mergeData = Array) in /Users/creative/Sites/laravel/trunk/vendor/bigelephant/presenter/src/BigElephant/Presenter/View/Environment.php line 9","file":"/Users/creative/Sites/laravel/trunk/vendor/bigelephant/presenter/src/BigElephant/Presenter/View/Environment.php","line":9}}

Any ideas?

Admin & User account not confirmed by default

Upon installation, I went to login with the user and admin credentials, only to be denied access. I thought I messed something up until I checked the database and saw "confirmed" set to "0". The UsersTableSeeder is set to 0 on both accounts as well.

It would seem reasonable to either note that by default they're both disabled, or enable only the Admin account on install to show the ability of being able to login with the Admin account being confirmed, and being denied access with the User account that is not confirmed.

Or if a users credentials are correct, but not confirmed, a notice that says "Account is not confirmed".

Blade error or something weired causes pages to be 500 error

I am running laravel4 boostrapper on win7 64bit wamp. and i am getting 500 for all pages.

after debugging a lot i found if i put at the end of default.blade.php it works otherwise all pages gives me 500 error.

Do i need to config something ?

Issue updating user.

Post L4 composer update, there seems to be an issue with the user update in the admin.

PHP 5.4 required?

Installing dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for zizaco/entrust dev-master -> satisfiable by zizaco/entrust dev-master.
- zizaco/entrust dev-master requires php >=5.4.0 -> no matching package found.

Potential causes:

Artisan error

Trying to run artisan to do migration and db:seed gives me error (in artisan in general).

Note that directories double in some places dev\webdev\uni\dev\webdev\ like beginning.

ErrorException: Warning: include(Z:\dev\webdev\uni\dev\webdev\uni\www\laravel\vendor\jasonlewis\expressive-date\src\ExpressiveDateServiceProvider.php): failed to open stream: No such file or directory in Z:\dev\webdev\uni\www\laravel\vendor\composer\ClassLoader.php line 183
in Z:\dev\webdev\uni\www\laravel\vendor\composer\ClassLoader.php line 183
at ErrorHandler->handle('2', 'include(Z:\dev\webdev\uni\dev\webdev\uni\www\laravel\vendor\jasonlewis\expressive-date\src\ExpressiveDateServiceProvider.php): failed to open stream: No such file or directory', 'Z:\dev\webdev\uni\www\laravel\vendor\composer\ClassLoader.php', '183', array('class' => 'ExpressiveDateServiceProvider', 'file' => 'Z:/www/laravel/../../dev/webdev/uni/www/laravel/vendor/jasonlewis/expressive-date/src/ExpressiveDateServiceProvider.php')) in Z:\dev\webdev\uni\www\laravel\vendor\composer\ClassLoader.php line 183
at ClassLoader::loadClass() in Z:\dev\webdev\uni\www\laravel\vendor\composer\ClassLoader.php line 183
at ClassLoader->loadClass('ExpressiveDateServiceProvider')
at spl_autoload_call('ExpressiveDateServiceProvider') in Z:\dev\webdev\uni\www\laravel\vendor\laravel\framework\src\Illuminate\Foundation\ProviderRepository.php line 123
at ProviderRepository->createProvider(object(Application), 'ExpressiveDateServiceProvider') in Z:\dev\webdev\uni\www\laravel\vendor\laravel\framework\src\Illuminate\Foundation\ProviderRepository.php line 89
at ProviderRepository->compileManifest(object(Application), array('Illuminate\Foundation\Providers\ArtisanServiceProvider', 'Illuminate\Auth\AuthServiceProvider', 'Illuminate\Cache\CacheServiceProvider', 'Illuminate\Foundation\Providers\CommandCreatorServiceProvider', 'Illuminate\Session\CommandsServiceProvider', 'Illuminate\Foundation\Providers\ComposerServiceProvider', 'Illuminate\Routing\ControllerServiceProvider', 'Illuminate\Cookie\CookieServiceProvider', 'Illuminate\Database\DatabaseServiceProvider', 'Illuminate\Foundation\Providers\OptimizeServiceProvider', 'Illuminate\Encryption\EncryptionServiceProvider', 'Illuminate\Filesystem\FilesystemServiceProvider', 'Illuminate\Hashing\HashServiceProvider', 'Illuminate\Foundation\Providers\KeyGeneratorServiceProvider', 'Illuminate\Log\LogServiceProvider', 'Illuminate\Mail\MailServiceProvider', 'Illuminate\Database\MigrationServiceProvider', 'Illuminate\Pagination\PaginationServiceProvider', 'Illuminate\Foundation\Providers\PublisherServiceProvider', 'Illuminate\Queue\QueueServiceProvider', 'Illuminate\Redis\RedisServiceProvider', 'Illuminate\Auth\Reminders\ReminderServiceProvider', 'Illuminate\Database\SeedServiceProvider', 'Illuminate\Foundation\Providers\ServerServiceProvider', 'Illuminate\Session\SessionServiceProvider', 'Illuminate\Foundation\Providers\TinkerServiceProvider', 'Illuminate\Translation\TranslationServiceProvider', 'Illuminate\Validation\ValidationServiceProvider', 'Illuminate\View\ViewServiceProvider', 'Illuminate\Workbench\WorkbenchServiceProvider', 'Zizaco\Confide\ConfideServiceProvider', 'Zizaco\Entrust\EntrustServiceProvider', 'LaravelBook\Laravel4Powerpack\Providers\PowerpackServiceProvider', 'ExpressiveDateServiceProvider', 'Basset\BassetServiceProvider', 'BigElephant\Presenter\PresenterServiceProvider')) in Z:\dev\webdev\uni\www\laravel\vendor\laravel\framework\src\Illuminate\Foundation\ProviderRepository.php line 51
at ProviderRepository->load(object(Application), array('Illuminate\Foundation\Providers\ArtisanServiceProvider', 'Illuminate\Auth\AuthServiceProvider', 'Illuminate\Cache\CacheServiceProvider', 'Illuminate\Foundation\Providers\CommandCreatorServiceProvider', 'Illuminate\Session\CommandsServiceProvider', 'Illuminate\Foundation\Providers\ComposerServiceProvider', 'Illuminate\Routing\ControllerServiceProvider', 'Illuminate\Cookie\CookieServiceProvider', 'Illuminate\Database\DatabaseServiceProvider', 'Illuminate\Foundation\Providers\OptimizeServiceProvider', 'Illuminate\Encryption\EncryptionServiceProvider', 'Illuminate\Filesystem\FilesystemServiceProvider', 'Illuminate\Hashing\HashServiceProvider', 'Illuminate\Foundation\Providers\KeyGeneratorServiceProvider', 'Illuminate\Log\LogServiceProvider', 'Illuminate\Mail\MailServiceProvider', 'Illuminate\Database\MigrationServiceProvider', 'Illuminate\Pagination\PaginationServiceProvider', 'Illuminate\Foundation\Providers\PublisherServiceProvider', 'Illuminate\Queue\QueueServiceProvider', 'Illuminate\Redis\RedisServiceProvider', 'Illuminate\Auth\Reminders\ReminderServiceProvider', 'Illuminate\Database\SeedServiceProvider', 'Illuminate\Foundation\Providers\ServerServiceProvider', 'Illuminate\Session\SessionServiceProvider', 'Illuminate\Foundation\Providers\TinkerServiceProvider', 'Illuminate\Translation\TranslationServiceProvider', 'Illuminate\Validation\ValidationServiceProvider', 'Illuminate\View\ViewServiceProvider', 'Illuminate\Workbench\WorkbenchServiceProvider', 'Zizaco\Confide\ConfideServiceProvider', 'Zizaco\Entrust\EntrustServiceProvider', 'LaravelBook\Laravel4Powerpack\Providers\PowerpackServiceProvider', 'ExpressiveDateServiceProvider', 'Basset\BassetServiceProvider', 'BigElephant\Presenter\PresenterServiceProvider')) in Z:\dev\webdev\uni\www\laravel\vendor\laravel\framework\src\Illuminate\Foundation\start.php line 181
at require('Z:\dev\webdev\uni\www\laravel\vendor\laravel\framework\src\Illuminate\Foundation\start.php') in Z:\dev\webdev\uni\www\laravel\bootstrap\start.php line 57
at require_once('Z:\dev\webdev\uni\www\laravel\bootstrap\start.php') in Z:\dev\webdev\uni\www\laravel\artisan line 30

Can't delete or edit comments.

I keep getting a Error 500 when trying to edit or delete comments. If you get a chance to look into it that would be great. I will see if I can figure it out.

run project from subdirectory

Using windows and xampp.

If you put this project into subdirectory ex. "localhost/larave4" login doesn't work because it redirects you to localhost/user/login instead of localhost/laravel4/user/login

forgot password feature not working

When I try to go to forgot password the link is user/user/forgot instead of user/forgot. Also when I hit the correct route Error 500 is triggered. Running PHP 5.4.4

Issue post role update

The role field is populated with ["post_comment"], after save it is populated with { '4' ; 'post_comment'}

Most likely an issue with Zizaco/Entrust and the way it is now saving data vs the way it is checking against it

404 error on /admin

Any ideas why /admin gives me a 404 error? I'm logged in as the admin user.

Andrew Links

Andrew you left the class=" and ending " off of the links.

Double quotes converted to html entities

default.blade.php templates contains the following code at (e.g.) line 58:

<li {{{ (Request::is('/') ? 'class="active"' : '') }}}><a href="{{{ URL::to('') }}}">Home</a></li>

When the layout is parsed, the output becomes:

<li class=&quot;active&quot;><a href="http://localhost:8000">Home</a></li>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.