AbuHenaM AbuHenaM
2

Compose run without cache

Hi if I run composer install or update it run from the local cache most of the time. How can run composer without cache....
hueilau hueilau
4

Change string to Unicode (Example: o -> u006f)

Anyone know how to change string to Unicode in Laravel? Example: g -> U+0067 ->u0067 Thanks...
hueilau replied
Solved
noblemfd noblemfd
1

How to use old() helper in input fields of Laravel blade

I am working on a leave application that will iterate with employee_type. The fields in the view blade are array elements. The code is as shown below: @fore...
Tray2 replied
Solved
esaeng esaeng
7

Method Illuminate\Database\Eloquent\Collection::links does not exist. (View: C:\Users\Q c\laravel\Pagination_Laravel\resources\views\home.blade.php)

Hi there..I am doing pagination in Laravel. and getting this error..suggestions plzz.... here error is coming. `` {!! $employeeData->links() !!} ``...
esaeng replied
Solved
Laravel
7
348
isamirsalehi isamirsalehi
12

My custom login class hes been changed automatically

Hi guys. I've edited the original login class for several times to customize it but it has been changed for no reason automatically to the first day it was. What's problem?...
tykus replied
Solved
Laravel
12
74
tkd5041 tkd5041
2

My component won't show my data...

I have a link that shows /auction/2/edit where the 2 is the item id. I have an edit controller that grabs the item and related images using that id ##Edit Con...
mvnobrega mvnobrega
7

How to get range of columns in array?

I have a table of questions like this: public function up() { Schema::create('perguntas', function (Blueprint $table) { $table->in...
BENderIsGr8te BENderIsGr8te
7

MySQL Connection via SSH in Laravel

Hey All, Curious if you know if there is a way to use an SSH connection to a remote server as part of a database connection. I was wondering if Eloquent has a built...
General
7
3238
martinym martinym
2

how to get category names from category Multi ids with Resource laravel

purpose to return array without any foreach for single Field to front from Controller --------- posts $table->json('post_category_id')->default(...
SteveCove SteveCove
5

Laravel 5.8 override email validation / use 5.7 rules

So i have just discovered that laravel 5.8 uses a new email validation rule, that is technically correct, but functionally useless for our app. The short version is...
General
5
1007
pickab00 pickab00
2

Laravel Sanctum API Login

So I have finally decided to use Laravel 8 with fortify/sanctum. But I am a bit confused as to why the default API route is redirecting me to the login page instead of show...
krunal05 krunal05
15

Laravel 8 - Pagination not showing numbers

I am trying to do a pagination and it works. But in the pagination I am only getting « Previous Next » How to do pagination with laravel so that i can see n...
jlrdw replied
Solved
Laravel
15
182
NoTimeForCaution NoTimeForCaution
4

Livewire Component (Updating string data)

First week with Livewire. I have the following basic form logic in the Livewire component: public $status; public function submitForm() { $this-...
salmazz45 salmazz45
6

get related products to category

how can i get the products related to specific category when i save the category id in json column in database ?? what is the query can i write to get it ! i trying more an...
GillesDeb GillesDeb
3

Default value not set? $table->timestamp('due_date')->nullable();

When trying to insert a new row into the database by using tinker I get the error 1364 field 'due_date' doesn't have a default value... But it is set up as following...

Laravel Basic Question

I have a database name orders My Controller Function public function addres(){ $id = $userid = Auth::user()->id;...
tykus replied
Solved

return last record by forign_key

i have chapters table, student take exams , in student_exams i store ('id','chapter_id','mark','user_id') I want to list all chapters and marks of last taken...
merdin merdin
6

500 server error

I want to pull the Tweety repository from the "Laravel From Scratch" series. But I get a 500 server error; I think it is due to the new Laravel update I installed...
tykus replied
Solved
gianmarx gianmarx
2

problems with EDIT which instead of modifying creates

I have problems with the EDIT method instead of modifying it creates a new element every time I don't understand why <?php namespace App\Http\Livewire;...
isamirsalehi isamirsalehi
2

How to set suitable name for routes

Hi guys. Maybe it happened to you before that you were thinking about what name i should set for the route that you've defined. My question is how can i set a suitable name...
gianmarx gianmarx
3

Undefined variable: tasks Laravel 8x livewire

What seems to be the problem: ErrorException Undefined variable: tasks (View: /Users/..../resources/views/livewire/tasks.blade.php) (View: /Users...
extjac extjac
1

Get Revenue - Event > Bookings > Booking Lines

I would like to be able to have an "Event Revenu" relationship. Right now I can use $bookings->revenu(), but when I trying $event->bookings->reven...
SimonAngatia SimonAngatia
1

errno: 150 "Foreign key constraint is incorrectly formed

The below is my posts migration but when I run php artisan migrate:fresh I get an error SQLSTATE[HY000]: General error: 1005 Can't create tableide...
Uzenkov Uzenkov
2

Update model with relationship

Hello everyone! Do you know, how to update the model with its relation in one query? I have the following: $request->user()->up...
Vusumzi Vusumzi
5

Undefined variable: user

Undefined variable: user (View: C:\xampp\htdocs\laravel-sb\resources\views\backend\user\edit.blade.php)...
Laravel
5
108
pickab00 pickab00
5

Help with shopping cart

So basically I am trying to understand a logic which has to do with a shopping cart. Or more accurately, a shopping basket because it has to do with food items. Its for a r...
laradoel laradoel
7

return the datas in my data blade view

Hello, i created a Xml file with data. i want to print it in my data view. i already wrote the codes. But how do i print the datas correctly in data blade view? i don't w...
VincentMimounPrat99 VincentMimounPrat99
3

Target class [ArticlesController] does not exist.

Hello I am getting Target class [ArticlesController] does not exist. in Laravel 8. Here is my route- Route::get('/articles', 'Arti...
ajithlal ajithlal
2

livewire nested data binding not showing the value

I have a livewire component for showing profile information. In my form, I'm binding the value to the wire:model as nested data. but it's not showing the value...
ajithlal replied
Solved
fylzero fylzero
2

Laravel not using the MAIL_FROM_NAME when sending emails (on Forge)

A Laravel application I host on Forge and for some reason the emails aren't sending with the MAIL_FROM_NAME. Can't figure out why so far. Anyone run into this?...
fylzero replied
Solved

How to Display Session values in HTML

I Try This <li><a href="{{route('cartProducts')}}"><i class="fa fa-shopping-cart"></i> Cart<span style="...
Araw replied
Solved
felloz felloz
15

Double click on navbar option = logout

For some reason that I don't understand, when I double click on an option on the navbar that calls a route, laravel log me out from the system. Isn't something that...
Laravel
15
182
Kadirou Kadirou
2

laravel 8 command schema:dump

-after running migration with php artisan migrate i maked: - php artisan schema:dump , i have this error on my console (i'm using xampp)...
Kadirou replied
Solved
salmazz45 salmazz45
3

cant install laravel ui in my application

when i trying to install laravel ui in my applcation verison 7 get this error https://ibb.co/mS8M...
anilkumarthakur60 anilkumarthakur60
2

Trying to get property 'id' of non-object

my project was working but suddenly i got error what could be the solution @extends('layouts.app') @section('title') Post @endsection @section('content...
tykus replied
Solved
Create a New Discussion Button