feat: add analysis tools and dashboard views for intern data tracking and reporting
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
$app = require_once __DIR__ . '/../bootstrap/app.php';
|
||||
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
|
||||
|
||||
$request = Illuminate\Http\Request::create('/stajyer/panel', 'GET');
|
||||
// start session
|
||||
$session = $app->make('session')->driver();
|
||||
$session->setId('test-session');
|
||||
$session->start();
|
||||
$session->put('intern_id', 18);
|
||||
$session->save();
|
||||
|
||||
$request->setLaravelSession($session);
|
||||
$cookies = ['laravel_session' => $session->getId()];
|
||||
$request->cookies->add($cookies);
|
||||
|
||||
$response = $kernel->handle($request);
|
||||
echo "GET /stajyer/panel -> HTTP Status: " . $response->getStatusCode() . " | Output Length: " . strlen($response->getContent()) . "\n";
|
||||
Reference in New Issue
Block a user