vp35161
vp35161
FFilament
Created by gigiloouu on 3/13/2024 in #❓┊help
The POST method is not supported for route admin/login. Supported methods: GET, HEAD.
yes
154 replies
FFilament
Created by gigiloouu on 3/13/2024 in #❓┊help
The POST method is not supported for route admin/login. Supported methods: GET, HEAD.
ok let me ssee if i can make it with your info found this in routes.php so it si clearly doing it on itself Route::name('auth.')->group(function () use ($panel) { if ($panel->hasLogin()) { Route::get($panel->getLoginRouteSlug(), $panel->getLoginRouteAction()) ->name('login'); }
154 replies
FFilament
Created by gigiloouu on 3/13/2024 in #❓┊help
The POST method is not supported for route admin/login. Supported methods: GET, HEAD.
what is the auth login path for filalment ? where do i find it ?
154 replies
FFilament
Created by gigiloouu on 3/13/2024 in #❓┊help
The POST method is not supported for route admin/login. Supported methods: GET, HEAD.
ah ok got it
154 replies
FFilament
Created by gigiloouu on 3/13/2024 in #❓┊help
The POST method is not supported for route admin/login. Supported methods: GET, HEAD.
ok but if i want under midldleware ? Route::middleware(['web', 'auth'])->group(function () { Route::get('/admin', [AdminPanelProvider::class, 'panel'])->name('admin.panel');
154 replies
FFilament
Created by gigiloouu on 3/13/2024 in #❓┊help
The POST method is not supported for route admin/login. Supported methods: GET, HEAD.
sry, i did revised the code 🙂 i tried with wrong ''' before 🙂 fillament login page is /admin/login , right ?
154 replies
FFilament
Created by gigiloouu on 3/13/2024 in #❓┊help
The POST method is not supported for route admin/login. Supported methods: GET, HEAD.
i might be doing something bad on my index, i tried multiple solutions:
<?php

use Illuminate\Http\Request;

define('LARAVEL_START', microtime(true));

// Determine if the application is in maintenance mode...
if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) {
require $maintenance;
}

// Register the Composer autoloader...
require __DIR__.'/../vendor/autoload.php';

//** vali */
// Set the base URL for the application

//**************************************** Debug information --- NU MERGE -- NU VAD NIMIC IN LOGURI !!! DE CE ???
file_put_contents(__DIR__ . '/../storage/logs/debug.log', print_r("we have data: .. " . $_SERVER . "\n", true), FILE_APPEND);

// Bootstrap Laravel and handle the request...
$app = require_once __DIR__.'/../bootstrap/app.php';

//// Set the base URL dynamically
//if (isset($_SERVER['HTTP_HOST'])) {
// $baseUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'];
// $baseUrl .= str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['SCRIPT_NAME']);
// $baseUrl = rtrim($baseUrl, '/');
// $baseUrl = str_replace('public', '', $baseUrl);
// $_SERVER['HTTP_HOST'] = $baseUrl;
//}


//$app->register(AdminPanelProvider::class);

$app->make(Illuminate\Contracts\Http\Kernel::class)
->handle(Request::capture()
)->send();


//** original ... */
// Bootstrap Laravel and handle the request...
//(require_once __DIR__.'/../bootstrap/app.php')
// ->handleRequest(Request::capture());
<?php

use Illuminate\Http\Request;

define('LARAVEL_START', microtime(true));

// Determine if the application is in maintenance mode...
if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) {
require $maintenance;
}

// Register the Composer autoloader...
require __DIR__.'/../vendor/autoload.php';

//** vali */
// Set the base URL for the application

//**************************************** Debug information --- NU MERGE -- NU VAD NIMIC IN LOGURI !!! DE CE ???
file_put_contents(__DIR__ . '/../storage/logs/debug.log', print_r("we have data: .. " . $_SERVER . "\n", true), FILE_APPEND);

// Bootstrap Laravel and handle the request...
$app = require_once __DIR__.'/../bootstrap/app.php';

//// Set the base URL dynamically
//if (isset($_SERVER['HTTP_HOST'])) {
// $baseUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'];
// $baseUrl .= str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['SCRIPT_NAME']);
// $baseUrl = rtrim($baseUrl, '/');
// $baseUrl = str_replace('public', '', $baseUrl);
// $_SERVER['HTTP_HOST'] = $baseUrl;
//}


//$app->register(AdminPanelProvider::class);

$app->make(Illuminate\Contracts\Http\Kernel::class)
->handle(Request::capture()
)->send();


//** original ... */
// Bootstrap Laravel and handle the request...
//(require_once __DIR__.'/../bootstrap/app.php')
// ->handleRequest(Request::capture());
154 replies
FFilament
Created by gigiloouu on 3/13/2024 in #❓┊help
The POST method is not supported for route admin/login. Supported methods: GET, HEAD.
problem is Route [login] not defined.
154 replies
FFilament
Created by gigiloouu on 3/13/2024 in #❓┊help
The POST method is not supported for route admin/login. Supported methods: GET, HEAD.
@Dennis Koch Hi. I understood what you were reffering on production and so on (i stopped using the serve on artisan cause i allready have the apache :)) . I have some problems with sellinux but atm for just testings I am close to having it okay on production. The only problem I face is that the login route doesnt work under the protected middleware and I dont know if i Have to do any separate routes for login or not (i tried but it doesnt work). Without middleware I can see the login page of fillament, but with it, something is out of my grasping. If you or any other user can guide a bit, it would ne awesome ( i am srtugling for many hours on this part 😦 )
<?php

use Illuminate\Support\Facades\Log;

use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route;

use App\Models\NodDb;

//use Filament\Facades\Filament;
use App\Providers\Filament\AdminPanelProvider;

use App\Http\Controllers\Auth\LoginController;


//** Test route
Route::get('/', function () {
return view('welcome');
});

//Route::get('/login', [LoginController::class, 'showLoginForm'])->name('login');
//Route::post('/login', [LoginController::class, 'login']);
//Route::post('/logout', [LoginController::class, 'logout'])->name('logout');

////** Protected routes (by fillament !?)
Route::middleware(['web', 'auth'])->group(function () {
Route::get('/admin', [AdminPanelProvider::class, 'panel'])->name('admin.panel');
//Route::get('/admin', [AdminPanelProvider::class, 'index'])->name('admin.index');
// Add other protected routes here!
});
<?php

use Illuminate\Support\Facades\Log;

use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route;

use App\Models\NodDb;

//use Filament\Facades\Filament;
use App\Providers\Filament\AdminPanelProvider;

use App\Http\Controllers\Auth\LoginController;


//** Test route
Route::get('/', function () {
return view('welcome');
});

//Route::get('/login', [LoginController::class, 'showLoginForm'])->name('login');
//Route::post('/login', [LoginController::class, 'login']);
//Route::post('/logout', [LoginController::class, 'logout'])->name('logout');

////** Protected routes (by fillament !?)
Route::middleware(['web', 'auth'])->group(function () {
Route::get('/admin', [AdminPanelProvider::class, 'panel'])->name('admin.panel');
//Route::get('/admin', [AdminPanelProvider::class, 'index'])->name('admin.index');
// Add other protected routes here!
});
154 replies
FFilament
Created by gigiloouu on 3/13/2024 in #❓┊help
The POST method is not supported for route admin/login. Supported methods: GET, HEAD.
ok. unnderstood
154 replies
FFilament
Created by gigiloouu on 3/13/2024 in #❓┊help
The POST method is not supported for route admin/login. Supported methods: GET, HEAD.
ty for your patience
154 replies
FFilament
Created by gigiloouu on 3/13/2024 in #❓┊help
The POST method is not supported for route admin/login. Supported methods: GET, HEAD.
i will do some more tests with the urls and db's and will come back tommoow if i dont solve it
154 replies
FFilament
Created by gigiloouu on 3/13/2024 in #❓┊help
The POST method is not supported for route admin/login. Supported methods: GET, HEAD.
if i serve it form my remote shoudlnt it be localhost/my_alias ?
154 replies
FFilament
Created by gigiloouu on 3/13/2024 in #❓┊help
The POST method is not supported for route admin/login. Supported methods: GET, HEAD.
when i use /admin i get the picture i showed you above with all the errors and the GET on 127.0.0.1:8000
154 replies
FFilament
Created by gigiloouu on 3/13/2024 in #❓┊help
The POST method is not supported for route admin/login. Supported methods: GET, HEAD.
APP_URL=my_url/my_alias_from_apache (i can get to welcome page of laravel with no error)
154 replies
FFilament
Created by gigiloouu on 3/13/2024 in #❓┊help
The POST method is not supported for route admin/login. Supported methods: GET, HEAD.
127 0 0 1
154 replies
FFilament
Created by gigiloouu on 3/13/2024 in #❓┊help
The POST method is not supported for route admin/login. Supported methods: GET, HEAD.
i used my server or i user myserver/alias from the conf
154 replies
FFilament
Created by gigiloouu on 3/13/2024 in #❓┊help
The POST method is not supported for route admin/login. Supported methods: GET, HEAD.
no
154 replies
FFilament
Created by gigiloouu on 3/13/2024 in #❓┊help
The POST method is not supported for route admin/login. Supported methods: GET, HEAD.
i tired in 3-4 ways the url
154 replies
FFilament
Created by gigiloouu on 3/13/2024 in #❓┊help
The POST method is not supported for route admin/login. Supported methods: GET, HEAD.
here is the same
154 replies