Commit 67696d81 authored by Taylor Otwell's avatar Taylor Otwell

index names may be specified on fluent setup.

parent 4806bccb
......@@ -40,8 +40,6 @@ class Bundle {
throw new \Exception("Bundle [$bundle] has not been installed.");
}
static::$started[] = strtolower($bundle);
// Each bundle may have a "start" script which is responsible for preparing
// the bundle for use by the application. The start script may register any
// classes the bundle uses with the auto-loader, or perhaps will start any
......@@ -55,6 +53,8 @@ class Bundle {
// registering the bundle's routes. This is kept separate from the
// start script for reverse routing efficiency purposes.
static::routes($bundle);
static::$started[] = strtolower($bundle);
}
/**
......
......@@ -29,6 +29,7 @@ class Schema {
*/
public static function execute($table)
{
die('here');
foreach ($table->commands as $command)
{
$connection = DB::connection($table->connection);
......@@ -82,9 +83,9 @@ class Schema {
{
foreach (array('primary', 'unique', 'fulltext', 'index') as $key)
{
if ($column->$key === true)
if (isset($column->attributes[$key]))
{
$table->$key($column->name);
$table->$key($column->name, $column->$key);
}
}
}
......
......@@ -7,7 +7,7 @@ class Fluent {
*
* @var array
*/
protected $attributes = array();
public $attributes = array();
/**
* Create a new fluent container instance.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment