Posts by user8811593 • 123 points
8 posts
- 
		0 votes0 answers94 viewsQ: How to use the middleware auth in Laravel 8 correctly?People created this group of routes for certain pages of my project to be protected by middleware auth: Route::group(['prefix' => 'admin', 'namespace' => 'Admin', 'as' => 'admin.'],… 
- 
		0 votes0 answers100 viewsQ: How to pick up the response object of an ajax request with Laravel?Staff I am making a fetch request to the Variable without using jquery and would like to get the return of this request, however when I give a console.log() in Sponse the console informs Undefined.… 
- 
		0 votes1 answer69 viewsQ: How to subtract and add dates with javascript?I have two dates and I need to make a delta of these dates to add in the following ones. See below: data1 = 2020-08-14T10:02 data2 = 2020-08-14T10:07 The code below brings the difference of these… 
- 
		0 votes1 answer103 viewsQ: Class not found. Namespace and Composer psr-4Guys I did everything you say in the other questions on the subject, but it didn’t solve my problem. So I opened a new question. My class is not being found. this is my structure: project _app |--… 
- 
		0 votes1 answer77 viewsQ: Problems with Datetime in Javascript with C#Staff I have a class that gets a start and end date from a Javascript: public object getTime(DateTime inicio, DateTime fim) { ... } I’m going through the dates like this through Javascript:… 
- 
		0 votes1 answer299 viewsQ: Why is fetch returning a file and not the data?I’m doing a fetch to get the data of a JSON, but the variable is getting the value of promisse and not the returned data. var data = fetch('./data/data.json') .then((response) => response.json())… 
- 
		1 votes1 answer52 viewsQ: How do I pull strings from the URL and mount a specific array for the Google Maps API?I’m trying to assemble a map of google maps with some pins, where the strings will be passed through the URL. However I need to pass an array like this to the API: var locations = [ ['First Place',… 
- 
		10 votes4 answers333 viewsQ: How to manipulate these objects with Javascript?I have the following objects: { letter: "A", num1: "1", num2: "2", num3: "3" } { letter: "B", num1: "3", num2: "2", num3: "1" } { letter: "C", num1: "2", num2: "3", num3: "1" } I would like to…