Category "laravel"

How can I interrogate user activity in Laravel

I'm looking for a way to best analyse the user data in our app. for example how many users have read 0 articles on our site how many users have read 1 article o

Different types of mailings for Laravel

I am preparing a reminder application. I have a reminder table in this application. On the other hand, I want to send special e-mails to all people in this tabl

Cannot update with an API request in Laravel

I try to update a record with an API request from a Vue SPA and it fails Here are the relevant parts of my application The migration of the relevant table publi

Cant install botman for Laravel

I wanted to try to create a simple chatbot web-app using Laravel Botman. I've created a new Laravel project but when I try to install Botman through the termina

Why is the login form not logging me in and reloads the login page?

I am building a Laravel project and the login form isn't logging me in. I changed the redirect in RouteServiceProvider, but the log in page just keeps reloading

Laravel - Is it possible to validate a get wildcard Request with Illuminate\Foundation\Http\FormRequest;

I have a GET route with a wildcard day. This day wildcard is a string like so: 20220507 (YYYYMMDD). After validation the string I wish to make a proper response

Attempt to read property "id" on null - description.blade.php

I have a problem with id i get error Attempt to read property "id" on null (View: /resources/views/admin/Attendance/description.blade.php) view code that show

Target class [request] does not exist

namespace Tests\Unit; use PHPUnit\Framework\TestCase; use Illuminate\Foundation\Testing\DatabaseMigrations; use Illuminate\Http\Request; use DMO\SavingsBond\M

Attempt to read property "nama_jabatan" on int - Laravel 8

I have 4 models for my project. Karyawan Role Jabatan Divisi This is how I call the view: https://codeshare.io/xvYz4B and this is my model view on Karyawan: &l

Laravel merge image by path to Request for validation

I'm very new to Laravel. I'm trying to integrate temporary image upload to my forms. What I want to do. When the user selects a image the image gets uploaded te

Laravel Lighthouse-PHP GraphQL (Server cannot be reached)

I'm using Laravel - Lighthouse-PHP GraphQL server, and when I deploy it to production, I have to write public in the URL in order to work: https://example.com/g

How with faker to get text without ending “.”?

When in laravel 9 app I set value for text field with faker : $this->faker->unique()->text(25); I see text for field ending with “.”. How

How to covert youtube link into embed link in Laravel and validate that field should contain only youtube link

<!DOCTYPE html> <html> <body> <h2>HTML Forms</h2> <form action=""> <label for="fname">You tube link1:</label>

How to set filename mask in PhpStorm search to exclude Blade files

In my regular Laravel project I have both regular .php files with classes and .blade.php files for the templates of my project. When searching in PHPStorm with

How to filter all fields data by one time without auto using button in lara classifer(Laravel,php)

Guys i'm currently working with lara classifer project and filtering method filter data when we select each radio button or dropdown.I want to make a button tha

How to filter User by role based on the called Model?

I'm using Laratrust to manage these roles: Patient Doctor I've a class called User which is the main entity, then I have a specific class for each role: Patient

how to add code to service provider by artisan command

i created an Artisan Command that created Repository. A Repository File and an Interface. when user run below command, this files will be generated. php artisan

Addition of function to create banner on management screen

I have a site built with Laravel, and I would like to add the function to create a banner to be placed on that site to the management screen. The requirements a

Spatie laravel-backup giving undesired file structure inside the output zip

I installed spatie/laravel-backup version 6.16 and haven't changed anything inside the backup.php file. When I do php artisan backup:run I got the timestamp zip

Nuxt image keeps breaking on page change

I have image displayed on my Nuxt page but anytime I navigate away from it back the image breaks and I do not know why. I have this in my code <img :src="bas