Practical work: Real estate agency, management of options — Discovery training of Laravel 10

Now that we have set up asset management, we would like to be able to add specific attributes (presence of an elevator, parking, etc.). To implement this functionality we will use the relation belongsToMany which will allow us to attach one or more options to a particular good.

We are therefore going to start by creating the administration which will make it possible to manage the options and then we are going to set up the fields which will make it possible to associate the options with the assets (select multiple).