Laravel-mix with toastr notification (laravel 5.6)

this is my work : I installed toastr :npm install toastr --save-dev File bootsrap.js: window.toastr = require('toastr'); File...
Laravel
5
206

Problems with translation of query to eloquen

How about, I tried to translate this query sql to eloquen, but I do not achieve it, does anyone know how I can do it? SELECT COUNT(nombre), usuario_ad FROM usuarios...

How to use a foreach inside a controller?

Is there a way to count this query in a foreach within the controller? public function reportes(Request $request) { $request->user()->authorizeRoles(['admin'])...

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

Sending SMS with Nexmo Guide

Any guides on sending an sms with Laravel that don't center around using the App/user class. I am pulling the phone number from a separate model. Having hard...

Where is the service layer ?

Hi, Something escapes me with Laravel ... The controllers are designed to directly inject the models ... Where are the service layer ? And how to injec...

How did "request()->has('completed')" translate into an integer?

I'm watching "Laravel 5.7 From Scratch" after a long time away from coding and there's something I don't quite understand in Episode 17. In that episode, w...

Method Illuminate\Validation\Validator::validateReqiured does not exist.

pls help <?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests\AdmissionRequest; use App\models\University; use App\m...

Stuck one to one relationship laravel

Hi guys I am new in Laravel I want your help. Here is my database: user: id, name, surname, email, role user_informations: id, user_id, status I want the name...

date filter

select * from assignment where (assignment.agency_id = '102' and assignment.status = '1' and assign...

Telescope not showing jobs that are queued

I installed Telescope on my dev environment AND production. It's just and running in both. However, I cannot see the jobs (it just is empty) on the production server. Both...

Laravel JSON Encryption

Good Evening all, Just wondering - because I cannot find explicit mention of yes or no - just a maybe in a few places... Does Laravel encrypt JSON responses w...

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

Save a special shape of html code to a database

The following html is stored in the database. This code can be edited by the administrator (html-aware) in the Web Administration (Laravel Nova). <a href=...

Getting Sum of Field through Polymorphic Relationship

I have two models, Payments_Distribution and Donation. In my Donation model: public function payments(){...

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'...

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

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,...

What's supposed to happen?

Hi Folks, I installed https://github.com/spatie/crawler and found this test...
Laravel
9
101
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