syntax error, unexpected 'class' (T_CLASS) in Laravel Cart

I am trying to install a this shopping cart using Laravel but I am getting an error and I cannot figure it out...

Envoyer Deployment removes my uploaded media

So I have an application that uploads media into public/uploads/{member_id}/file.ext As expected when a new deployment is done, the uploads no longer work as the pub...

Get the latest record ID - smartest solution

I've an ongoing invoice number and i'm currently thinking what could be the smartest way to create the new database entry with the ongoing number. Do you think i sho...

Laravel Telescope records nothing on Production

I successfully configured and run locally with no issues. But as I install Laravel Telescope on production env it's record noting but Exceptions. Any idea why or it'...

LetsEncrypt installed through Laravel Forge causes Safari/iPhone timeout from Iran

Hello all, So here’s a challenging problem: I have a "test" domain (filmdoost.com) through GoDaddy and a server on DigitalOcean (nginx 1.15.5) tha...

How to establish a relationship?

Hello, everybody, I'd like to make a relationship, but I don't know how to handle it. There are suppliers, materials and types of stone. A material name can belong to one o...

Listening for Events Triggered by an External Application

Is there any way I can have a Laravel application listen and respond to an event triggered by another Laravel application? The system I am currently building consists of th...

Laravel Gate, policy and supper admin

Hi Guys, I am implementing Gate in my application, where I have following setup. Users Roles Route & policy middleware Ro...

Class 'Collective\Html\HtmlServiceProvider' not found

I removed this package, since I am not using it in my Laravel 5.7 app "laravelcollective/html": "5.1.*" Now composer install on production compla...

Laravel Class 'Symfony\Bridge\PsrHttpMessage\Factory\HttpFoundationFactory' not found

Hello, I try to do a http request wit guzzle using this code class FeedbackController extends Controller { /** * API Endpoint * *...

Auth in browser / Vue app

I have a browser-based app with full login/authentication abilities and that is all working fine. It uses that Laravel Auth functions. Performance in some areas was...

Get cumulative users by week

Hi, I'm having trouble getting my head around writing something in Laravel to produce cumulative user numbers. like... Week 1 : 10 users Week 2 : 8 us...

str_limit truncates at the wrong point

Hello! First of all, I'm still learning Laravel so my apologies if my question may seem obvious. I'm making a content manager for a project we're working on school,...

javascript push removing previous item from array

Hi, I have a collection of posts wich I want to group by month of creation (created_at), to do this I'm looping through each post, parsing the date using moments plugin and...

Issue trying to show grouped array length

Hi, I have a component where I display all posts grouped by creation date, by months. For each of the twelve months I want to show next to it the total ammount of posts pu...

Serialize computed property Carbon instance

Hi, my model offers a computed property called "departureTime"; if a departure time is available, it will be returned as a Carbon instance. By serializing...

How does the Laravel code example send email to many recipients

How does the Laravel code example send email to many recipients. Recipient e-mail address data from the database...

What's supposed to happen?

Hi Folks, I installed https://github.com/spatie/crawler and found this test...

mcrypt extension for wamp or xampp

hey guys. i want to work with laravel 5.0 because my customer php server is 5.4 i install wamp 2.4 with php 5.4.12 but it have not mcrypt , i google to how install m...
Create a New Discussion Button
Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels