If I write this line on routes/web.php file It outputs this: That’s cool, but my question is since app()[‘config’] returns an object so how this [“auth.guards.web”]works? Even there is no index with that name! Outside of Laravel I tried to write a class named Test so that it retu…
Ajax multiple file names in one string response
I want to return the file names to use in my html modal. But instead returning each file name, it returns all of them at once. Check the following image: My modal code is: My script to open modal and fetch the files is: And finally my file to fetch the file names from the server is: I want to
Adding Data to Belongs to resource using TextField laravel Nova
Hi is there any way to insert data in two tables in one request laravel nova belongsTo relation What I am trying to achieve is that I have two models first is the user model & the second one is the student Model User model has email and password And student model has other profiling details of a student w…
Remove the .php extension on all pages (NGINX)
Having tried all the solutions on Stack, I was not able to remove the .php extension. I managed to make the URLs accessible: www.mydomain.com/login but the user can always change the URL to www.mydomain.com/login.php and I’d like to avoid that. Here is a part of my config : Answer This might be what you…
How to pass correctly a php json_encode value to a table that is using DataTables plugin?
I’m working on a project that using a payment gateway and i would like to display values from payment API in JSON format to a table that use Datatable JS plugin. Firstly, i found some similar …
Route groups and form posting in laravel
I am using CoreUI and Laravel to build a project and I want to make a form on clients/addclient which will pass all the data from form to my database. I am struggling into this part: I have these …
How can I filter a MongoDB entry to update it using updateOne on PHP?
I am trying to update an entry on MongoDB using the code below. I want it so that it updates the ‘name’ field pertaining to the studentid posted from the html form. I keep getting a syntax error for …
Laravel UniSharp file manager is uploaded but images are not displayed
I am using UniSharp file manager package in Laravel. I have no problem uploading, But images are not displayed. After executing the php artisan storage:link command, only the storage folder is displayed and there are no uploaded files in it. .env APP_URL=http://localhost:8000 Laravel Framework 8.6.0 unisharp:…
is there another way to get the image from DB to Dynamic Carousel?
I have seen many people have posted the same question but non of their answers have worked. I have used bootstrap to create a Dynamic Carousel that gets the image from the path that stored in the …
ORA-28547 with php-fpm in docker container
I got a working php-fpm docker container acting as the php backend to a nginx frontend. What I mean by working, is that it renders phpinfo output in the browser as expected. My php-fpm container was …