skogit skogit
1

Debugbar included in saved XML-file...

I'm sitting with a xml-export using the normal domdocument class in php. in the end I do a return $dom->saveXML() The file looks as it should, except in the end where...
Ap3twe Ap3twe
25

Uploading to drobox

Guys, I am uploading files to dropbox. Files are sent, but are not readable? Am I doing anything wrong? I get the error in dropbox folder .jpg files are supported but...
Laravel
25
219
gianmarx gianmarx
5

query order text

I have a $ table-> text ('status') field that can take cat, dog, rabbit, t-rex (it's just these 4) I would like to query that orders for rabbit, dog, t-rex, cat?...
ehangeto4 ehangeto4
2

From CakePHP 2 to Laravel 8

Hi, I'm new to Laravel and have no previous experiences with it. My only experience with a PHP framework is CakePHP 2, which I have used for 3 years at work. I'm now workin...
mvnobrega mvnobrega
4

Anonymous users after deleting account

I have a discussion forum and I want to keep the topics even after the user deletes the account. So that the photo and username show "Anonymous User"....
gianmarx gianmarx
8

factory two functions in one

i have two fields in the poll table: $table->id(); $table->text('status'); $table->timestamps(); status field can have three values A, B, C. I...
Ahmed96 Ahmed96
6

Explain how the Seasons system works

Hello It is possible to explain the way the Seasons system works, in the sense that if a series contains five parts and each part contains 30 episodes, how can it wo...
dbos1504 dbos1504
3

Cron job

Hello, Can anyone help me. I have 7 tables that represents 7 days of week. How can i make cron job that writes every day in one table aka ( today cron job writes in...

Error when $request->user()->cannot()

Hope one of you might be able to help me here :) I'm trying to validate if user is allowed to update a model, but getting the following error: Error C...
jeevamugunthan jeevamugunthan
2

Redirection not working after login in laravel

hi everyone redirection is not working after login i put conditions but it was always redirect to home page here is my code <?php namespace App\Http\Cont...
LetMeKnow LetMeKnow
10

image Profile jetstream not found,

Hi, i wanna ask and need help too , Today, I got some problems, because my laptop has an error and it can't be repaired, it's just that I can save the folder, and I'm curre...
Laravel
10
99
spacedog4 spacedog4
0

Prevent broadcast notification to be added to the queue

I'm using queue to generate some document, after generating it, I send a notification to the user, telling that his documents has been generated, but after sending the noti...
IvanRadojevic IvanRadojevic
2

Unit test is not execute

This unit test is does not recognize at all? <?php namespace Tests\Unit\Categories; //use PHPUnit\Framework\TestCase; use Tests\TestCase; use Illuminate...
gianmarx gianmarx
3

print class in table with foreach case odd

i am printing the contents with tailwind of the following table with a foreach: @foreach ($polls as $poll) //once like this case even <tr> .... <...
chrisan chrisan
2

Troubles using env and config with Console Commands

With Laravel 6.2, PHP 7.4, on Ubuntu 18 LTS I'm having trouble using env and config in production. Locally, since I do not cache my config, I am able to use env with Conso...
chrisan replied
Solved
slobru slobru
5

Why is update([$data]) on a date field not working?

Hi, I'm using a version of Laravel 7. I have defined a date column on my model's table using timestamp('custom_date') in the migration. I have added it to the...
krunal05 krunal05
5

Laravel 8 - Class 'Database\Seeders\DB' not found

I have created a new seeder "UserTableSeeder" Here is my code: <?php namespace Database\Seeders; use Illuminate\Database\Seeder; use A...
WeWillRock WeWillRock
19

Unable to migrate table using point datatype in postgres ?

I have a migration file which contains point datatype. It is laravel 5.8. While migrating I am getting below error. Illuminate\Database\QueryE...
Laravel
19
168
laracastsluvr laracastsluvr
1

Laravel 6 Horizon: Empty Recent & Failed Jobs List

Hi friends, I broke something in my app. I'm running two separate Laravel apps that share a common database and a common Redis instance. Everything is running on the...
frumentius frumentius
2

Laravel auth ui Verify Email and Password Reset with React JS Front End Application

I'm building a React JS app with laravel 7.x as back end. I'm using sanctum and laravel ui for authentication. All the login and registering are working well. But...
rafa-acioly rafa-acioly
4

How to attempt login using sanctum?

I'm receiving some requests from a webhook and the auth token is in x-wc-webhook-signature header key, i've tried to use the facade...
andy7 andy7
3

How to check isset of index?

Hello, what I wanted to ask was how do I check the isset of an index page? Im trying to create a permissions function for roles of users and its going good I did it for the...
gianmarx gianmarx
11

factory created_at

$ table->timestamps (); I wanted to do the factory of this that in theory to do what with today's date I just need to do 'created_at' => now (); if I wanted to do it...
Laravel
11
87
mustafaabdujalil mustafaabdujalil
5

Class 'Illuminate\Support\Env' not found

when i'm trying to run composer update give me this error ! Please help...
Laravel
5
721
frumentius frumentius
7

Get Client IP address in create function RegisterController Laravel 7.x

Hi all, Can anyone help me how to get client IP address in create function in RegisterController? I follow this (...
TomMcEvoy TomMcEvoy
3

Laravel 8, Jetsteam, Inertia change login view

The Laravel Jetstream documentation says for simplicity the scaffolding for login etc are written as blade and do not use a Javascript framework. Under the old Laravel/Ui p...
Laravel
3
199
dmhall0 dmhall0
3

Trying to get property 'email' of non-object (from .env file)

When someone submits through the Contact Us on the site I am trying to send me an email with the information. I have added [email protected]...
gianmarx gianmarx
5

customize ..user/profile jetstream

i installed jetstream in laravel. At the ... / user / profile page I can't quite understand how they built it. I don't find route, controller and model how could I change t...
Laravel
5
115
WeWillRock WeWillRock
7

What is the latest stable version of laravel ?

I read a lot of blogs about it, everyone has different opinion. I want to stick with the one, which is latest & stable ?...
PhoeniX5 PhoeniX5
1

Can't insert date in varchar Mysql table!

Hello, I have an issue when trying to insert data in MySQL table, here is my code : dd($request->produit_designation.' '.date('d-m-Y')); Produit::firstOrC...
waltun waltun
8

How to change email field in login to username in laravel?

In my users table i have username insted of email and this is also in my register form. I overwrite username method in AuthenticatesUsers trait in LoginController to...
Laravel
8
103
laradoel laradoel
1

if not empty create element else keep it null(don't create a element)

Hey i want to tell the controller to create a element if the input is not empty. but if the input is empty do nothing. But if i do this a get a empty value back and it cr...
gianmarx gianmarx
3

factory error random numer id

i am trying to create a random number with the factory: 'id_poll'=>$this->faker->randomNumber(1,10), when I call tinker and run the create command it...
codespikey codespikey
0

Laravel Sessions duplication across domain and subdomain

Laravel Version 8.5.0 I`m getting duplication issues with sessions (driver: database). Sessions are persistent on both main domain and subdomains but sw...
noblemfd noblemfd
9

index view blade rendered only 15 records

I have this code that filters employee records: public function index(Request $request) { $render=[]; $employees = HrEmp...
Create a New Discussion Button