0

I'm new with Laravel and I'm trying to reproduce the quickstart guide, but I don't get it to work.

I'm running local Apache Server in Linux (Debian)

This is my installation url: http://localhost/laravel_blog

I test adding to .htaccess, but not work

RewriteBase /laravel_blog/

My route is like is indicate in the quickstart guide

Route::get('/', function () {
    return view('tasks', [
        'tasks' => Task::orderBy('created_at', 'asc')->get()
    ]);
});

I read these stackoverflow answers, but the solution not worked for me.

Laravel quick start guide route not working

laravel when going to address I see folders, not starting the app

How can I get work the laravel route?

Community
  • 1
  • 1
gvd
  • 1,482
  • 6
  • 32
  • 58
  • You have both laravel-4 and laravel-5 tags, please edit your question to exactly which version you're using, as they both are different. For the sake of it, there's even laravel-5.1 which is also different from 5. Small changes but if you're starting it will become confusing. – davejal Nov 22 '15 at 00:39
  • Also please state how you installed. The link you provided give different options on installing; git, composer or homestead? – davejal Nov 22 '15 at 00:40
  • I used composer and I'm using laravel 5.1 – gvd Nov 22 '15 at 00:42
  • 1
    in the folder you created the project could you run `php artisan serve` and browse to http://localhost:8000 – davejal Nov 22 '15 at 00:43
  • also add the error you're getting, what's not working? – davejal Nov 22 '15 at 00:43
  • After running php artisan serve and restart web browser now is working fine. – gvd Nov 22 '15 at 00:55

1 Answers1

2

in the folder you created the project could you run php artisan serve and browse to localhost:8000

davejal
  • 6,009
  • 10
  • 39
  • 82