Relative Content

Tag Archive for phplaravelapi

PHP laravel create new session

I am developing an API to manage active sessions in my Laravel application and would like to know if it is possible to create a session for a user.

Laravel API URL not found on this server

I am trying to make API project by Laravel
I created the database and configured the .env file and installed the api with php:artisan
But when I tried to test the URL with Postman it showed HTML code for page that said The requested URL was not found on this server.

Eloquent ORM ::where does not work (Laravel)

$person = Entrant::findOrFail($request->person_id); $person_2nd_query = Entrant::where(‘id’, ‘=’, $request->person_id); if ($person) { error_log($person); } So above you see 2 queries – the first one works and logs all the info into the console as needed, but when I try to use the second query in the if statement, it returns 500 Internal Server Error. So what […]