Category : debugging

I’m not sure why I’m getting this error that says IlluminateContractsContainerBindingResolutionException: Target [AppDalInterfacesIUploadsRepository] is not instantiable while building [AppHttpControllersFileUploadController]. in file /var/www/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 1093 despite having (to my knowledge) everything set up correctly. The spelling and everything else is correct but I’m still not sure what the issue is. I’ve tried everything under the ..

Read more

I’m not sure why after adding the object key/values to grab user information upon registering is throwing a 401 error. Before adding these key/values, it worked fine. I’m storing ip,countryName, countryCode, regionCode, regionName, cityName and zipCode in the DB upon registration but I’m not returning this information in the response. My login function is only ..

Read more

After running docker-compose up -d –build followed by docker ps (to check images), the MySQL image doesn’t exist. When pinging my API endpoint, I get this error: SQLSTATE[HY000] [2002] No such file or directory (SQL: select count(*) as aggregate fro userswhereemail = [email protected]) The database credentials in the docker-compose.yml file match what’s inside the .env ..

Read more

I am working on a project, and my project structure look like : FrontEnd: Application-1 www/ ├─ application-Frontend/ │ └─ composer.json └─ custom-classes/controller/views/model └─ MyClass.php **Backend:(Laravel) Application -1 ** www/ ├─ application-a/ │ └─ composer.json └─ custom-classes/ └─ MyClass1.php Application -2 │ ├─ application-b/ │ └─ composer.json └─ custom-classes/ └─ MyClass2.php The frontend application call ..

Read more

Updated Laravel to version 6, but an error appeared at the validation stage Illuminate Validation ValidationException The given data was invalid. /vendor/laravel/framework/src/Illuminate/Foundation/Http/FormRequest.php * Get data to be validated from the request. * * @return array */ public function validationData() { return $this->all(); } /** * Handle a failed validation attempt. * * @param IlluminateContractsValidationValidator $validator ..

Read more

I’m trying to debug a browser for ReactJS in a Laravel project in VSCode. Here are my settings in launch.json { "version": "0.2.0", "configurations": [ { "type": "pwa-chrome", "request": "launch", "name": "Client", "url": "http://localhost:8010", "webRoot": "${workspaceFolder}/resources/js" } ] } and webpack.mix.js mix .ts("resources/js/index.tsx", "public/js") .js("resources/js/dateFormatting/date.js", "public/js/date.js") .sass("resources/sass/app.scss", ‘public/css’) .tailwind("./tailwind.config.js") .browserSync({ proxy: "localhost:8000", port: 8010, open: ..

Read more

I’m doing an ajax GET request $(dataTableSearchInputButtonID).on(‘click’, function () { $.ajax({ type: "GET", url: "myUrl.test/tools", dataType: "html", success: function (resp) { console.log(resp); }, }); }); However, in the response in the console, I’m only seeing the HTML upon clicking the Search button (to retrieve and display data) public function getTriviaTags(Request $request){ try { $userSearch = ..

Read more

My 404.blade.php file is this: @extends(‘layouts.app’) @section(‘content’) <h3 class="page-title">@lang(‘global.app_oh_no’)!</h3> <div class="panel panel-default"> <div class="panel-body"> <div class="row" > <h4>&nbsp;&nbsp;@lang(‘global.app_sorry_were_not_able_to_find_the_page_you_are_looking_for’).</h4> <h4> &nbsp;&nbsp;{{$exception->getMessage()}} </h4> </div> </div> </div> @stop I’ve been asked to modify it so that the code line{{$exception->getMessage()}} only displays for errors when, "debug=true in .env" The problem is I don’t know what that means or how ..

Read more

for some reason when uploading file and submitting my form, it isn’t allowing video uploads that are size of *MB (it keeps throwing a 413 error). Only *KB files are successfully going through.  I checked the php.ini file on the server and the upload_max_filesize = 20M. I’ve also checked in Nginx (client_max_body_size 5000M;) but I’m not sure why this could possibly ..

Read more

I am having trouble with PHP 8 + Laravel 8.4 I get errors like [30-Jul-2021 10:13:23] WARNING: [pool www] child 1098 exited on signal 11 (SIGSEGV – core dumped) after 0.422025 seconds from start My composer.json { "name": "dd", "description": "dd", "type": "project", "require": { "php": "^7.4|^8.0", "ext-bcmath": "*", "ext-curl": "*", "ext-dom": "*", "ext-gd": "*", ..

Read more