hola amigos espero me puedan ayudar ya que apenas inicio con laravel y para entenderlo mejor estoy siguiendo este tutorial
http://fideloper.com/laravel-4-uber-...ith-auth-guide 1 Cree el proyecto
Código BASH:
Ver originalcomposer create-project laravel/laravel montes
2 Hice la migraciòn
Código BASH:
Ver originalphp artisan migrate:make create_users_table --table=users --create
3 edite el modelo app/models/User.php y asi quedo
Código PHP:
Ver originaluse Illuminate\Auth\UserInterface;
use Illuminate\Auth\Reminders\RemindableInterface;
class User extends Eloquent implements UserInterface, RemindableInterface {
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'users';
/**
* The attributes excluded from the model's JSON form.
*
* @var array
*/
protected $hidden = array('password');
protected $fillable = array('email', 'password');
/**
* Get the unique identifier for the user.
*
* @return mixed
*/
public function getAuthIdentifier()
{
return $this->getKey();
}
/**
* Get the password for the user.
*
* @return string
*/
public function getAuthPassword()
{
return $this->password;
}
/**
* Get the e-mail address where password reminders are sent.
*
* @return string
*/
public function getReminderEmail()
{
return $this->email;
}
}
4 edite la migracion app/database/migrations/2013_07_18_182811_create_users_table.php
Código PHP:
Ver original<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function(Blueprint $table)
{
$table->increments('id');
$table->string('email')->unique();
$table->string('password');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('users');
}
}
5 edite app/database/seeds/DatabaseSeeder.php
Código PHP:
Ver original<?php
class DatabaseSeeder extends Seeder {
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Eloquent::unguard();
$this->call('UserTableSeeder');
}
}
6 Cree el UserTableSeeder.php en app/database/seeds/
Código PHP:
Ver original<?php
class UserTableSeeder extends Seeder {
public function run()
{
DB::table('users')->delete();
'password' => Hash::make('your_password') ));
}
}
7 cree la base de datos php artisan migrate --env=local.....
8
segui todos los pasos y cuando compruebo en el navegador
http://localhost/montes/public/login
y obtengo este error
Cita: Not Found
The requested URL /montes/public/login was not found on this server.