Add "All Applications" page

This commit is contained in:
2020-07-11 02:43:59 +01:00
parent bbe3001157
commit 035c9399a6
8 changed files with 244 additions and 8 deletions

View File

@@ -119,13 +119,14 @@ class Install extends Command
$this->info('>> Saved configuration settings!');
$this->info('>> Preparing database...');
$this->callSilent('config:cache');
$this->call('migrate');
$this->call('db:seed');
touch($basePath . '/INSTALLED');
$this->call('up');
$this->info('>> All done! Visit ' . $baseURL . ' to start using your brand new installation of Raspberry Teams!');
$this->info('>> All done! Visit ' . $basePath . ' to start using your brand new installation of Raspberry Teams!');
}
else

View File

@@ -45,10 +45,9 @@ class ApplicationController extends Controller
}
public function showUserApp(Request $request, $applicationID)
{
// TODO: Inject it instead (do this where there is no injection, not just here)
$application = Application::find($applicationID);
$this->authorize('view', $application);
@@ -77,6 +76,12 @@ class ApplicationController extends Controller
public function showAllApps()
{
return view('dashboard.appmanagement.all')
->with('applications', Application::paginate(6));
}
public function showAllPendingApps()
{
@@ -87,9 +92,6 @@ class ApplicationController extends Controller
}
public function showPendingInterview()
{
$this->authorize('viewAny', Application::class);