Can I use JS variables to access Laravel data? How should I write it? – Jquery
let name = $(this).attr("name"); let value = "{{ $response['" + name + "'] }}"; I am running this in $(document).ready()
let name = $(this).attr("name"); let value = "{{ $response['" + name + "'] }}"; I am running this in $(document).ready()
I tried to add an image to the register but I don't know why since the register no longer works Register blade @extends('layouts.app') @section('content') <div class="container"> <div class="row justify-content-center"> <div class="col-md-8"> <div class="card"> <div class="card-header">{{ __('Register') }}</div> <div class="card-body"> <form…
I'm trying to create laravel project in WSL2 ubuntu. I have the projects folder (www) in the WSL root directory, inside that folder i have laravel_test subfolder. When i run composer create-project laravel/laravel example-app but i'm getting an error Your…
I have tried to install composer require maatwebsite/excel and I have tried several times but still getting errors and I'm using laravel 9.23.0 and PHP v8.0.5 here is the error. Using version ^3.1 for maatwebsite/excel ./composer.json has been updated Running…
Making tests ("phpunit/phpunit": "^9.5.10") for laravel ("laravel/framework": "^9.2") site I want to use .env.testing file But I got error running command : $ vendor/bin/phpunit tests/Feature/PagesCrudTest.php --env=testing Unknown option "--env" Checking help I did not find any "env" issue mentioned: $…
I am using Ubuntu 22.04 with the latest version of Docker Desktop (4.11.1) and Laravel Framework 9.26.1. I try to create a new Laravel project follwing the steps listed at https://laravel.com/docs/9.x#getting-started-on-linux. When I run ./vendor/bin/sail up the terminal shows no…
i am fetching data from the database and then viewing it ata form where i want to update it.so i want o get the rental details value from the table in the database and view it in the text area…
I'm new to Laravel and decided to take the route of Homestead, setting up Vagrant and getting familiar with something other than WAMP. After a bit of confusion and a learning curve, I've gotten everything working, projects connected, loading and…
I have set up a docker composer with 2 PHP applications in Laravel and an Nginx container. docker-compose.yml: version: '2.0' services: # PHP Service app: build: args: user: application uid: 1000 context: ./ dockerfile: Dockerfile image: myapp/app container_name: app restart:…
I have a laravel model that has a JSON column type named "properties". This column is a array of objects like below [ { "quantity":4210, "price":"21247.10", "childs":[ { "quantity":0.19814469, "price":"22329.70" } ] }, { "quantity":1234, "price":"21247.10", "childs":[ { "quantity":0.19814469, "price":"22329.70"…