Skip to content

Commit 83fa185

Browse files
committed
Fixing crud error and seeder
1 parent d63a5d4 commit 83fa185

File tree

5 files changed

+0
-31
lines changed

5 files changed

+0
-31
lines changed

src/commands/Syntax/SetupCommand.php

-3
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,6 @@ protected function setUpSyntax($package)
181181
case 'chat':
182182
return $this->setUpChat();
183183
break;
184-
case 'forum':
185-
return $this->setUpForum();
186-
break;
187184
case 'steam-api':
188185
return $this->setUpSteam();
189186
break;

src/models/Observers/SeedObserver.php

-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
<?php namespace Syntax\Core;
22

33
class SeedObserver {
4-
5-
public function created($model)
6-
{
7-
$model->runSeed();
8-
}
94
}

src/models/Seed.php

-15
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,4 @@ class Seed extends \BaseModel
3535
/********************************************************************
3636
* Extra Methods
3737
*******************************************************************/
38-
public function runSeed()
39-
{
40-
// Move the update file to local
41-
$updatePath = app_path() .'/core/database/seeds/updates';
42-
$fullSeedName = $this->name .'.php';
43-
44-
File::copy($updatePath .'/'. $fullSeedName, app_path() .'/database/seeds/'. $fullSeedName);
45-
exec('chmod 755 '. app_path() .'/database/seeds/'. $fullSeedName);
46-
47-
// Load the new file
48-
exec('/usr/local/bin/php '. base_path() .'/artisan dump-autoload');
49-
50-
// Run the seed
51-
exec('/usr/local/bin/php '. base_path() .'/artisan db:seed --class='. $this->name);
52-
}
5338
}

src/views/helpers/crud/type/default.blade.php

-4
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@
7777
</div>
7878
@include('helpers.helpModal')
7979

80-
@section('jsInclude')
81-
{{ HTML::script('/js/crud.js') }}
82-
@stop
83-
8480
<script>
8581
@section('onReadyJs')
8682
// Make twitter paginator ajax

src/views/helpers/crud/type/multiview.blade.php

-4
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@
5252
</div>
5353
@include('helpers.helpModal')
5454

55-
@section('jsInclude')
56-
{{ HTML::script('/js/crud.js') }}
57-
@stop
58-
5955
<script>
6056
@section('onReadyJs')
6157
// Make twitter paginator ajax

0 commit comments

Comments
 (0)