Support the ongoing development of →
Requests Session
Last updated 1 year ago.

I would love a more officially supported option, but this is what I have as a temporary solution:

     * Get the cards available for the request.
     * @param Request $request
     * @return array
    public function cards(Request $request)
        // Grab the resource UUID from the request

        /** @var WebsiteModel $model */
        $model = $this->model()->newModelQuery()->findOrNew(reset($matches));

        return [
            (new WebsiteMetrics\Clicks($model))->onlyOnDetail(),
            (new WebsiteMetrics\PageViews($model))->onlyOnDetail(),

Sign in to participate in this thread!


Your banner here too?

judahnator judahnator Joined 17 Jun 2016


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.