rossiluca

Fullstack Developer at Prysma

Member Since 1 Year Ago

Pordenone

Experience Points
11,900
Total
Experience

3,100 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
82
Lessons
Completed
Best Reply Awards
4
Best Reply
Awards
  • start your 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-in-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 Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist 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.

  • Community Pillar

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

Level 3
11,900 XP
Apr
07
1 month ago
Activity icon

Started a new Conversation Notification On Multiple Channels

What's the best way to handle and send notifications to multiple channels based on user preferences? I want to create this behavior: A user can set multiple channels where to get notifications, for example: Microsoft Teams, Slack, Telegram etc. and they have to set their webhooks to receive notifications on this channels.

How would you handle this? Will you create a notification for every channels or do you set some controls in the via methods inside the notification class?

Feb
25
2 months ago
Activity icon

Started a new Conversation Spark-Stripe: Error After Updating To V1.0.5

Hi, I'm using the Stripe version of Spark Next. I just updated to the v1.0.5 following the upgrade guide. So I run migrations and updated my config/spark.php file. Now when I visit the billing page I get this error:

TypeError: null is not an object (evaluating 'this.$page.props.billable.receipt_emails.join')

And I can't see anymore any plans

Feb
18
3 months ago
Activity icon

Replied to Email Verification Not Working In Laravel Jetsream

Yes, tried both when logged in and when not logged in. Always with same browser

Activity icon

Started a new Conversation Email Verification Not Working In Laravel Jetsream

Hi everyone, I'm using the Inertia version of Laravel Jetsream. I have everything configured and working. I enabled the emailVerification entry in my config/fortify.php configuration file and I added the MustVerifyEmail to my User model. When I register a user, the app send me the email with the link however the link seems not working. It redirects me to the login page and if I try to login it returns me a 419 Session Expired error. In the user table the email_verified_at it's still null

Any hint?

Thank you

Jan
15
4 months ago
Activity icon

Awarded Best Reply on Laravel Vapor Task Timeout

In case someone need it you have to change the default time your in your vapor.yml configuration file. By default Vapor limit web request execution time at 10 seconds.

You can change it like this:

id: 2
name: vapor-laravel-app
environments:
    production:
        timeout: 180
        build:
            - 'composer install --no-dev'
Activity icon

Replied to Laravel Vapor Task Timeout

In case someone need it you have to change the default time your in your vapor.yml configuration file. By default Vapor limit web request execution time at 10 seconds.

You can change it like this:

id: 2
name: vapor-laravel-app
environments:
    production:
        timeout: 180
        build:
            - 'composer install --no-dev'
Jan
14
4 months ago
Activity icon

Started a new Conversation Access Laravel Array Validation Messages From Inertia

I'm trying to access to all the messages passed from a validation in Laravel.

In the controller I defined this validation method:

request()->validate([
    'registrar_id' => 'required|integer',
    'parameters.*.value' => 'required'
]);

This is what Laravel pass to Inertia props:

props: {
  errors: {
    "parameters.0.value": "The field is required",
    "parameters.1.value": "The field is required"
}

I'm using the new Inertia form validation helper so I have something like this in the Vue component:

<jet-input-error :message="form.errors.*" class="mt-2" />

But I can't access to the specific error in the array, because the <jet-input-error> it's inside a foreach in a form

Jan
08
4 months ago
Activity icon

Started a new Conversation Laravel Jetsream - Vue Error After Upgrade With Inertia

After upgrading Laravel Jetsream to v2, I updated @inertiajs/inertia to v0.8.2 and @inertiajs/inertia-vue to v0.5.4

Now when I login into the app it throw this errors:

[Vue warn]: Error in render: "TypeError: undefined is not an object (evaluating '_vm.$page.user.profile_photo_url')"

found in

---> <AppLayout> at resources/js/Layouts/AppLayout.vue
       <Show> at resources/js/Pages/Domains/Show.vue
         <Inertia>
           <Root>
TypeError: undefined is not an object (evaluating '_vm.$page.user.profile_photo_url')
[Vue warn]: Error in render: "TypeError: undefined is not an object (evaluating '_vm.$page.user.profile_photo_url')"

found in

---> <AppLayout> at resources/js/Layouts/AppLayout.vue
       <Show> at resources/js/Pages/Domains/Show.vue
         <Inertia>
           <Root>

Please do you have any hint?

Activity icon

Started a new Conversation Laravel Jetsream Validation Errors Not Working With Inertia

I'm using a form with some fields that are required and I'm validating them. However when I submit the form, it throw the errors in the respective bags but I can't show them with the form.error method.

Steps To Reproduce: Here is the code:

In the Vue component I have this:

<form class="w-full text-left">
  <div class="w-full mt-2">
    <div class="col-span-6 sm:col-span-4">
      <jet-label for="name" value="Name" />
      <jet-input id="name" type="text" class="rounded-md mt-1 block w-full" v-model="form.name" autocomplete="name" />
      <jet-input-error :message="form.error('name')" class="mt-2" />
    </div>
  </div>
</form>


data() {
    return {
        form: this.$inertia.form({
            name: null,
        }, {
            bag: 'addNewDomain',
            resetOnSuccess: false,
       }
    }
}

methods: {
    addNewDomain() {
      this.form.post(route("domain.store"), this.form, {
        preserveScroll: true,
      });
    },
}

In the Controller I Validate with the default Laravel Validation Helper:

public function store(Request $request)
{
    request()->validate([
        'name' => 'required|string',
    ]);
}

Here is the error props: image

Activity icon

Replied to Laravel 8 Jetstream - Vue Error

I have the same problem after updated Jetstream to v2.0 and Inertia to 0.8.2 and inertia-vue to 0.5.4

Any hint?

Jan
02
4 months ago
Activity icon

Replied to Expired Session Not Redirect To Login [Laravel Jestream]

Unfortunately nothing changes.

I see also this errors:

local.ERROR: Argument 1 passed to Illuminate\Session\Middleware\StartSession::addCookieToResponse() must be an instance of Symfony\Component\HttpFoundation\Response, null given
local.ERROR: Argument 1 passed to Illuminate\Cookie\Middleware\EncryptCookies::encrypt() must be an instance of Symfony\Component\HttpFoundation\Response, null given
Activity icon

Started a new Conversation Expired Session Not Redirect To Login [Laravel Jestream]

Hi, I'm using a Laravel Jestream app with Inertia.js I've a problem when the session expire and didn't redirect to login page. In the log I see this error:

local.ERROR: Trying to get property 'headers' of non-object {"exception":"[object] (ErrorException(code: 0): Trying to get property 'headers' of non-object at /Users/lucarossi/code/domtracker/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:191)
[stacktrace]

Anyone had this problem and can help me?

Thank you!

Dec
16
5 months ago
Activity icon

Replied to Where Condition Inside With()

Worked like a charm! Thank you!

Activity icon

Started a new Conversation Where Condition Inside With()

Hi, I'm trying to get a list of domains related to an user when the expiration date is lower then a variable set in the domain table. So I'm trying as below:

$usersDomains = User::with(['domains' => function ($domain) {
    $domain->where('expiration_date', '<=', Carbon::now()->addDays($domain->days_notification));
}])->get();

This will throw an error:

ErrorException 

Undefined property: Illuminate\Database\Eloquent\Relations\HasMany::$days_notification

at app/Console/Commands/CheckExpiringDomains.php:50

Any suggestion on how to use the $domain->notification in where clause?

Nov
16
6 months ago
Activity icon

Started a new Conversation Laravel Vapor Task Timeout

Hi, I’m running an app in Laravel Vapor. I have a task that import a file Excel in the app and store the data. But it throw error because after 10 seconds the task timeout. In the cloudfront logs i get this:

Task timeout after 10.02 seconds

In the app it returns error 502 with the message internal server error

Activity icon

Started a new Conversation Opis\Closure\SecurityException On Laravel Vapor

Hi, I'm running for the first time a project in Laravel Vapor. After the deploy the application return an error 500. When I go to the logs section I see this error appear:

Opis\Closure\SecurityException
Your serialized closure might have been modified and it's unsafe to be unserialized. Make sure you use the same security provider, with the same settings, both for serialization and unserialization.
/var/task/vendor/opis/closure/src/SerializableClosure.php:213

Any hint?