I am using new clean installation of redicle cloned from the repo on mac(homebrew PHP 8.2.6). With .zip file there wasn’t .env.example(which I see that there was constans that was different than normal laravel .env) and also hade issue with bud not building with exit code 1 that didn’t find solution so try another approach which was clone the repo from main branch.
On the problem:
To distinct what I am outputting in routes/web.php
created replaced /welcome
(didn’t sound how it was and to change it to be sure it came from me with
Route::get('/laravel/', function () {
return view('laravel');
});
Next I copy welcome.blade.php and rename it to laravel.blade.php. Replace @section('content')...
with
@section('content')
<p>👋 Welcome to Laravel</p>
@endsection
And opened domain/laravel/
Just to see if there is something different created routes/api.php with code from laravel api.php code
<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
Route::get('/user', function (Request $request) {
return [1=>'user'];
});
Array is returned as json and after that: