alessandrobelli

alessandrobelli

Associate Researcher at Bremen

Member Since 3 Years Ago

Querceta

Experience Points
22,770
Total
Experience

2,230 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
222
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start-engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 5
22,770 XP
Sep
26
3 weeks ago
Activity icon

Replied to Re-use A Component In VueJS

This is a paginated interview, every component is shown with a classic v-show="pagenumber == X".

Yes, and I need to get the values from the database. Also, create as many elements as the database says: interview has

  • 3 circles in the sorting and 6 sortable elements.
  • 4 circles in the second sorting and 6 sortable elements.

Circles: divs with round borders at the exact center of the page.

Sortable elements: images with label that the user can move around. I use interactjs and the elements are divs with certain classes. I might need to use a different class name for each component.

Activity icon

Replied to Re-use A Component In VueJS

While I of course agree with you, the question is still the same. I move the css manipulation out of the component and rename every class, and follow a "v-for css manipulation"? I think this is a bit complex to follow concepts bit by bit...

Activity icon

Started a new conversation Re-use A Component In VueJS

Hello! I am doing an interview software in which I have different components. One fo them is called "sorting". In this one, I create "circles" in which a user sort different images.

I create the circles everytime the component is loaded, because the number of them is a db value (and other personalizations).

In the component I elaborate the css in this way:

   var previouselement = null;
                var maincontainer = document.querySelector('.circle_container');
                for (var i = 1; i <= this.circles; i++) {

                    if (previouselement == null) {
                        var circle = document.createElement("div");
                        circle.className = 'round-sorting' + i;
                        previouselement = circle;
                    } else {
                        var current = document.createElement("div");
                        current.className = "round-sorting" + i;

                        current.appendChild(previouselement);
                        previouselement = current;

                    }
                    this.outmost = i;
                }
                maincontainer.appendChild(previouselement);

                // remove spacing from left and top of the last circle
                document.querySelector(".round-sorting" + this.circles).style.top = "0vh";
                document.querySelector(".round-sorting" + this.circles).style.left = "0vh";
                document.querySelector(".round-sorting" + this.circles).style.width = "80vh";
                document.querySelector(".round-sorting" + this.circles).style.height = "80vh";
                document.querySelector(".round-sorting" + this.circles).style.borderRadius = "50%";

Beside the code itself, as you see I'm using class names, and that's a problem when I want to reuse this component. Do you have anything in mind? Should I try to rename all the classes with a consequent number and check if it works? That would be a loooong work for potentially nothing...

Aug
22
1 month ago
Activity icon

Replied to Migrate:fresh Did Not Show A Warning On Production!

yes, I have APP_ENV=production ...

EDIT **** I had Production and not production. I can't believe this is a thing!

Activity icon

Started a new conversation Migrate:fresh Did Not Show A Warning On Production!

Hello! I just destroyed a database's project, my fault. But I wondered why I got no warning when I executed

php artisan migrate: fresh --seed

that my app is in production.

Is there an easy way to disable fresh and seed commands on production?

Apr
11
6 months ago
Activity icon

Replied to Overriding Values In Model Factories

:'( no @Maurice_ solution anymore

Feb
07
8 months ago
Activity icon

Replied to OAuth2 (Laravel Passport) - How It Works?

I also would like to add some questions: does a "simple" database -> my app connection require a Laravel Passport implementation? Is it necessary? I wanted to implement it but, as far as I got, there's no real deal if my app is not accessed externally.

Dec
07
10 months ago
Activity icon

Started a new conversation V-bind Not Unique In Subarray

https://stackoverflow.com/a/43072153/1806870?stw=2

Can someone please reference some theory or documentation about the answer on this question? I can't grasp my head around in the world why a -->variable<-- is the same instance even if it's assigned to 2 different arrays or object properties. Now I solved with the solution, but I still have the same problem with sub-variables. For example, following StackOverflow names, if foundGood had an empty array or object that would later elaborate, they would be the same instance.

So, after doing this:

this.services_goods.push(Object.assign({}, foundGood));

if I edit in the template

this.services_goods[0].arrayofthings[0]

this also get changed

this.services_goods[1].arrayofthings[0]

why?

Nov
16
11 months ago
Activity icon

Started a new conversation Database Design Suggestion

I'm currently building an app that involves questions and answers.

  • Admins create a questionnaire with questions and related answers
  • The user in the frontend answers.

The difficult point comes when I have to save all the answers and the chosen one because I have several answer type:

  • open answer [user write something and I save it]
  • multiple answer [user choose from a pool of prewritten answers]
  • scale [ a range of numbers ]

open and multiple answers can be combined.

How would you design this part?

Activity icon

Replied to Docker, Laravel And A Production Server With Apache Running

@OHFFS - mmmmmmmm but isn't 1.8 > 1.23 ? How is the versioning working? :O

anyway thanks a lot, really, but I asked the boss to bring some external expertise to create a docker on the server. I'm currently the only developer and if I focus on docker all the time plan shift a lot.

Nov
14
11 months ago
Activity icon

Replied to Docker, Laravel And A Production Server With Apache Running

@OHFFS -

docker --version
Docker version 18.06.1-ce, build e68fc7a
docker-compose --version
docker-compose version 1.8.0, build f3628c7

these should be right, right?

Activity icon

Replied to Docker, Laravel And A Production Server With Apache Running

@ohffs I'm trying out your docker-compose.yml but I get this error:

Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a version of "2" (or "2.0") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/

Then, if I change it to 2 I get this:

ERROR: The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for services.app: 'deploy'
Unsupported config option for services.mysql: 'deploy'
Unsupported config option for services.queue: 'deploy'
Unsupported config option for services.redis: 'deploy'
Unsupported config option for services.scheduler: 'deploy'
Nov
13
11 months ago
Activity icon

Started a new conversation Docker, Laravel And A Production Server With Apache Running

Hello! I'm doing a project in which I need to go to production in a server that in currently running php 7.0.* and it's not possible to upgrade due to old software. Docker was already installed to ensure onlyoffice could run. Now I would like to have multiple laravel project at the same time, but I can't figure out a way or a guide that helps me. The laradock guide is helpful to start and get a working image, but where I can see if laradock will mess the current docker images?

Oct
29
11 months ago
Activity icon

Replied to Docker Series

+1

Oct
23
11 months ago
Activity icon

Started a new conversation Laravel/Vue Security - Laravel Passport

Hello! I am developing a project that needs as much security as it's needed, without disrupting the User Experience that much. I have thought about Laravel Passport, but I don't see how that can be useful since my app has only a web interface and the API is usable from one mobile app. Am I wrong?

I see the use in the examples of Google, Github, but not in my case... In the web interface case, I always use the "Laravel Password Grant Client" for any user. For the mobile app, I would use another "Password Grant Client", since I don't want to let the user click "allow" every time.

I'm probably not getting how entirely Laravel Passport works, is there any chance to understand given my situation?

Oct
23
1 year ago
Activity icon

Replied to Cronjob "between" In Laravel 5.1

@kossa can I do that in the before()? will it stop it?

Activity icon

Replied to Cronjob "between" In Laravel 5.1

unfortunately I can't upgrade, it's not my decision...

Activity icon

Started a new conversation Cronjob "between" In Laravel 5.1

Hello! I would like to use the "between" function for the cronjob that exist from the 5.4 in Laravel 5.1 , do you know a way to implement it?

Is it possible to use as well weekdays()? Because I tried it and it seems to doesn't work...

Jan
11
2 years ago
Activity icon

Started a new conversation Elixir, BrowserSync And Vue

Hello!

I'm trying to configure browserSync to reload when a .vue file (a component) is changed. Right now is working only if I save 2 times, meaning reloading 2 times the page.

Is there a way to make it work better, saving only 1 time?

Am I making something wrong? This is my code:


   mix.sass(['./resources/assets/frontend/first/sass/digital/app.scss'], 'public/frontend/bmw/css/app.css' ); 
   mix.sass(['./resources/assets/frontend/first/sass/stage2/app.scss'], 'public/frontend/bmw/css/app2.css' ); 
   mix.webpack(['./resources/assets/frontend/first/js/app.js'], 'public/frontend/first/js/app.js' ); 


  
   mix.sass(['./resources/assets/frontend/second/sass/app.scss'], 'public/frontend/second/css/app.css' );

   //SYNC
browserSync.init({ proxy: 'http://localhost/prj/v3/public/',files: ["public/frontend/**/*.css","public/frontend/**/*.js","resources/views/frontend/**/*.php","resources/assets/frontend/**/*.vue"]});
});
Dec
09
2 years ago
Activity icon

Started a new conversation [JQUERY - NGINX] Ask For A Content Of A Folder - JQuery

Hello! I have a static website in laravel forge, I would like to access via jQuery a folder of images. I currently have 403 error...

How can I resolve that? With the configuration

location /img/ {
autoindex  on;
}

I can access the files, but they're publics... I would rather make them accessible only through code...

Dec
01
2 years ago
Activity icon

Replied to Where Are You All From?

I live in Munich, but I'm from Querceta, Italy :D