Skip to content

Commit

Permalink
#10
Browse files Browse the repository at this point in the history
  • Loading branch information
itsbenny99 committed Feb 29, 2020
1 parent 8f364af commit 20221fa
Show file tree
Hide file tree
Showing 35 changed files with 94 additions and 86 deletions.
46 changes: 25 additions & 21 deletions app/Http/Controllers/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,31 @@

namespace App\Http\Controllers;

use App\Airport;
use App\Audit;
use App\Announcement;
use App\Bronze;
use App\Calendar;
use App\ControllerLog;
use App\Event;
use App\EventPosition;
use App\EventRegistration;
use App\Feedback;
use App\File;
use App\Incident;
use App\Metar;
use App\PositionPreset;
use App\PresetPosition;
use App\Pyrite;
use App\Scenery;
use App\SoloCert;
use App\User;
use App\Visitor;
use App\VisitRej;
use App\Models\WebData\Airport;
use App\Models\WebData\Audit;
use App\Models\WebData\File;
use App\Models\WebData\Announcement;
use App\Models\WebData\Bronze;
use App\Models\WebData\ControllerLog;
use App\Models\WebData\Pyrite;
use App\Modles\WebData\Scenery;

use App\Models\Events\Calendar;
use App\Models\Events\Event;
use App\Models\Events\EventPosition;
use App\Models\Events\EventRegistration;
use App\Models\Events\PositionPreset;
use App\Models\Events\PresetPosition;

use App\Models\Mship\Feedback;
use App\Models\Mship\Incident;
use App\Models\Mship\User;
use App\Models\Mship\Visitor;
use App\Models\Mship\VisitRej;

use App\Models\VatsimData\Metar;
use App\Models\Training\SoloCert;

use Artisan;
use Illuminate\Support\Facades\Auth;
use Carbon\Carbon;
Expand Down
46 changes: 25 additions & 21 deletions app/Http/Controllers/AdminDash.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,31 @@

namespace App\Http\Controllers;

use App\Airport;
use App\Audit;
use App\Announcement;
use App\Bronze;
use App\Calendar;
use App\ControllerLog;
use App\Event;
use App\EventPosition;
use App\EventRegistration;
use App\Feedback;
use App\File;
use App\Incident;
use App\Metar;
use App\PositionPreset;
use App\PresetPosition;
use App\Pyrite;
use App\Scenery;
use App\SoloCert;
use App\User;
use App\Visitor;
use App\VisitRej;
use App\Models\WebData\Airport;
use App\Models\WebData\Audit;
use App\Models\WebData\File;
use App\Models\WebData\Announcement;
use App\Models\WebData\Bronze;
use App\Models\WebData\ControllerLog;
use App\Models\WebData\Pyrite;
use App\Modles\WebData\Scenery;

use App\Models\Events\Calendar;
use App\Models\Events\Event;
use App\Models\Events\EventPosition;
use App\Models\Events\EventRegistration;
use App\Models\Events\PositionPreset;
use App\Models\Events\PresetPosition;

use App\Models\Mship\Feedback;
use App\Models\Mship\Incident;
use App\Models\Mship\User;
use App\Models\Mship\Visitor;
use App\Models\Mship\VisitRej;

use App\Models\VatsimData\Metar;
use App\Models\Training\SoloCert;

use Artisan;
use Illuminate\Support\Facades\Auth;
use Carbon\Carbon;
Expand Down
2 changes: 1 addition & 1 deletion app/Calendar.php → app/Models/Events/Calendar.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App;
namespace App\Models\Events;

use Illuminate\Database\Eloquent\Model;

Expand Down
2 changes: 1 addition & 1 deletion app/Event.php → app/Models/Events/Event.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App;
namespace App\Modles\Events;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App;
namespace App\Modles\Events;

use App\EventRegistration;
use Illuminate\Database\Eloquent\Model;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace App;
namespace App\Modles\Events;

use App\EventPosition;
use App\User;
use App\Models\Events\EventPosition;
use App\Models\Mship\User;
use Illuminate\Database\Eloquent\Model;

class EventRegistration extends Model
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App;
namespace App\Models\Events;

use Illuminate\Database\Eloquent\Model;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App;
namespace App\Models\Events;

use Illuminate\Database\Eloquent\Model;

Expand Down
4 changes: 2 additions & 2 deletions app/Feedback.php → app/Models/Mship/Feedback.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace App;
namespace App\Modles\Mship;

use App\User;
use App\Modles\Mship\User;
use GuzzleHttp\Client;
use Illuminate\Database\Eloquent\Model;
use SimpleXMLElement;
Expand Down
4 changes: 2 additions & 2 deletions app/Incident.php → app/Models/Mship/Incident.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace App;
namespace App\Modles\Mship;

use App\User;
use App\Models\Mship\User;
use Illuminate\Database\Eloquent\Model;

class Incident extends Model
Expand Down
2 changes: 1 addition & 1 deletion app/Opt.php → app/Models/Mship/Opt.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App;
namespace App\Models\Mship;

use Illuminate\Database\Eloquent\Model;

Expand Down
2 changes: 1 addition & 1 deletion app/Permission.php → app/Models/Mship/Permission.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App;
namespace App\Models\Mship;

use Laratrust\Models\LaratrustPermission;

Expand Down
2 changes: 1 addition & 1 deletion app/Role.php → app/Models/Mship/Role.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App;
namespace App\Models\Mship;

use Laratrust\Models\LaratrustRole;

Expand Down
2 changes: 1 addition & 1 deletion app/Team.php → app/Models/Mship/Team.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App;
namespace App\Models\Mship;

use Laratrust\Models\LaratrustTeam;

Expand Down
8 changes: 4 additions & 4 deletions app/User.php → app/Models/Mship/User.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace App;
namespace App\Models\Mship;

use Carbon\Carbon;
use App\CotrollerLog;
use App\MoodleEnrol;
use App\User;
use App\Models\WebData\CotrollerLog;
use App\Models\WebData\MoodleEnrol;
use App\User\Models\Mship;
use Config;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Auth\User as Authenticatable;
Expand Down
2 changes: 1 addition & 1 deletion app/VisitRej.php → app/Models/Mship/VisitRej.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App;
namespace App\Modles\Mship;

use Illuminate\Database\Eloquent\Model;

Expand Down
2 changes: 1 addition & 1 deletion app/Visitor.php → app/Models/Mship/Visitor.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App;
namespace App\Models\Mship;

use Illuminate\Database\Eloquent\Model;

Expand Down
2 changes: 1 addition & 1 deletion app/Ots.php → app/Models/Training/Ots.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace App;


use App\User;
use App\Models\Mship\User;
use GuzzleHttp\Client;
use Illuminate\Database\Eloquent\Model;
use SimpleXMLElement;
Expand Down
2 changes: 1 addition & 1 deletion app/SoloCert.php → app/Models/Training/SoloCert.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App;
namespace App\Models\Training;

use Illuminate\Database\Eloquent\Model;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App;
namespace App\Models\Training;

use Illuminate\Database\Eloquent\Model;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace App;
namespace App\Models\Training;

use Illuminate\Database\Eloquent\Model;
use Carbon\Carbon;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace App;
namespace App\Models\Training;

use App\User;
use App\Models\User;
use Carbon\Carbon;
use GuzzleHttp\Client;
use Illuminate\Database\Eloquent\Model;
Expand Down
2 changes: 1 addition & 1 deletion app/ATC.php → app/Models/VatsimData/ATC.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App;
namespace App\Models\VatsimData;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
Expand Down
2 changes: 1 addition & 1 deletion app/Metar.php → app/Models/VatsimData/Metar.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App;
namespace App\Models\VatsimData;

use Illuminate\Database\Eloquent\Model;

Expand Down
4 changes: 2 additions & 2 deletions app/Airport.php → app/Models/WebData/Airport.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace App;
namespace App\Models\WebData;

use App\deserialization;
use App\Metar;
use App\Models\VatsimData\Metar;
use GuzzleHttp\Client;
use Illuminate\Database\Eloquent\Model;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App;

use App\User;
use App\Models\Mship\User;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;

Expand Down
2 changes: 1 addition & 1 deletion app/Audit.php → app/Models/WebData/Audit.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App;
namespace App\Modles\WebData;

use Illuminate\Database\Eloquent\Model;

Expand Down
4 changes: 2 additions & 2 deletions app/Bronze.php → app/Models/WebData/Bronze.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace App;
namespace App\Models\WebData;

use App\User;
use App\Models\Mship\User;
use Illuminate\Database\Eloquent\Model;

class Bronze extends Model
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace App;
namespace App\Models\WebData;

use App\User;
use App\Models\Mship\User;
use DB;
use Illuminate\Database\Eloquent\Builder as QueryBuilder;
use Illuminate\Database\Eloquent\Model;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App;
namespace App\Models\WebData;

use Illuminate\Database\Eloquent\Model;

Expand Down
4 changes: 2 additions & 2 deletions app/File.php → app/Models/WebData/File.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace App;
namespace App\Models\WebData;

use App\File;
use App\Models\WebData\File;
use Illuminate\Database\Eloquent\Model;

class File extends Model
Expand Down
2 changes: 1 addition & 1 deletion app/MoodleEnrol.php → app/Models/WebData/MoodleEnrol.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App;
namespace App\Models\WebData;

use Illuminate\Database\Eloquent\Model;

Expand Down
2 changes: 1 addition & 1 deletion app/Pyrite.php → app/Models/WebData/Pyrite.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App;
namespace App\Models\WebData;

use Illuminate\Database\Eloquent\Model;

Expand Down
2 changes: 1 addition & 1 deletion app/Scenery.php → app/Models/WebData/Scenery.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App;
namespace App\Models\WebData;

use Illuminate\Database\Eloquent\Model;

Expand Down
Empty file removed app/models/mship.php
Empty file.

0 comments on commit 20221fa

Please sign in to comment.