daniels daniels
1

Trying to get property of non-object - I just want some clarity here.

public function edit(User $user) { $roles = Role::all(); return view('admin.users.edit', compact('user', 'roles')); THIS WORKS return view('admin....
FareedR FareedR
0

in_array key and list of data

so i got a form that need to tick (checkbox). and the tick(checkbox) is an array . am i missing somewhere ? $is_contradicts = $request->has('contradict...
davy_yg davy_yg
2

black screen

I can't understand why I get a blank white screen for my online website. I seperate the framework and the public_html folder which is quite common. in my publ...
kiasaty kiasaty
2

Morph to relationship

Hi, I have these tables: users, articles, images. images could be for users, or articles, or none. I mean some images have no foreign_key. they have no...
iboosensei iboosensei
0

404 error on front end

Hello everyone, I'm following this tuto about Laravel nova....
Nova
0
1
jesse_orange_newable jesse_orange_newable
0

Undefined properties in Job

I am using DocuSign within my application and I created a job to accomplish polling, that is, checking whether a document was updated without using a webhook. The jo...

Return custom error on Model::create

Hello everybody, I would like to do the following: A new model should be created by posting the data via API to another server. The response is a Illumi...
brunitosessa brunitosessa
4

Resource API data

Hi, I'm trying to send data to an App using Api resources. I have "Bar resource", that has to include the distance (using latitude and longitude) from an User to...
senrab senrab
0

Bail on first validation error in array

I am trying to validate multi-file upload where users can upload pictures. In my controller I have protected $required = [ 'title'...
jinsonjose jinsonjose
2

how to apply google2fa-laravel in laravel

in my concern is that its have only login system only admin is created the users so how to add the 2fa authentication in laravel main problem is its have no register...
Hadayat Hadayat
0

I am using laravel slug error "Undefined index: separator"

Hello Guys i am using laravel slug. it's throw an error "Undefined index: separator", Can anyone guide me. Or provide me complete step by step guidence....

Are long sessions bad?

Ok, I know that's too general a question. So to expand... For an e-commerce platform, would it be considered bad practice to have a long session length so that items...
AbdulBazith AbdulBazith
6

how toretreive images from storage folder and display it in blade file

guys iam working with a project online examination. the question may contain images and the options may also contain images. and the explanation may be images or doc...
moh1434 moh1434
0

Use laravel sanctum in lumen ?

How to make laravel sanctum work in lumen ?. i want to use it to authenticate my SPA apis...
namht1st namht1st
0

How to remove url path from request paramters

Hi everyone, I am having problems with the request paramters suddenly include url path as below: use Illuminate\Http\Request; public function create(R...
commish commish
12

HALP! Laravel Mix not using my app.css

The app.scss is compiling perfectly fine, but when I inspect the .css served by my webpage, the fully compiled app.css file in my public folder is completely replaced with:...
Mix
12
122
markss markss
0

Eloquent / Nova - Change Default orderBy

Hey I have this relation method, which applies a union to a relation, which is again required for a localization feature. My question is not about the union itself a...
Nova
0
13
halaei halaei
1

What is the best way to restart horizon?

Currently, I issue a artisan horizon:terminate and wait for supervisord to start horizon after the current horizon process gets terminated. This approach has a...
Laravel
1
676
Elenktik Elenktik
8

Use Vimeo only for authenticated users?

Hey, I uploaded a video to Vimeo and checked " hide video from Vimeo". I also whitelisted my domain. The video can now only be watched if it is embed on my websi...
Laravel
8
312
tuxnix tuxnix
3

Make:Resource Vs Make: Controller

I am working on building a Web App with an Admin facing back-end, that is mainly laravel 7 and JS and a PWA client side app that is HTML 5, CSS, and JS. I am new to larave...
isarantoglou isarantoglou
1

Send XML body with HTTP Client (Laravel 7)

Hello, I am trying to learn HTTP Client of Laravel 7 and I got stuck. I want to send a XML to an endpoint but I can't find any documentation (...
niyo niyo
10

Property [name] does not exist on this collection instance.

i just can't find why my data in the graphics table doesn't show up public function index () { // if(!empty($graphics)) { // $graphics = Graphic::get('amount');...
Laravel
10
187
afoysal afoysal
4

Could not open input file: artisan

I downloaded a Laravel project from cPanel. I run composer update command. But I am getting error like below....
aligajani aligajani
0

How to upload directly to S3 using Nova 2.0?

I am using Vapor so files >1MB dont work. File::make('Information Memorandum File', 'information_memorandum_attachment_full_document_file')...
Nova
0
6
mstdmstd mstdmstd
0

How with cypress get ID of inserted row in CRUD testing?

Using cypress("@vue/cli-plugin-e2e-cypress": "~4.2.0") in @vue/cli 4.0.5 app I make CRUD opearitions and adding...
christianvolk christianvolk
1

Laravel API + Vue Frontend

I would like to build a Laravel API and a completely separated Frontend, for example with Vue. API and Frontend would be on separated servers. Are there any Tutorial...
lperry65 lperry65
2

Load Balancers

I have a Laravel 7 APP with two instances behind an NGINX load balancer, I've set up Trusted Proxies as described in the Laravel docs but I don't think it's working . As so...
Daniel1836 Daniel1836
2

Laravel route question

I'm trying to get this code snippet to work. a href="{{ route('profile', Auth::user()) }}">My Profile</a It says route not defined. My...
noblemfd noblemfd
0

How to make Laravel FullCalendar not to scroll or display beyong the current year

I am using FullCalendar in my Laravel-5.8 application: Controller public function index() { $leaverequests = HrLeaveRequest::all(); retur...
princeoo7 princeoo7
4

API authentication via social networks for your Laravel application

Well this title is copied from the medium blog and so if some one as crossed it, please don't complaint ;D here is the link :...
matttonks11 matttonks11
0

Mocking multiple api calls in one method with Guzzle

Hi All, I'm currently working on a side project which makes some calls to a movie API. I'm trying to test one of the methods I created by mocking out the API using g...
siraj762 siraj762
2

FK

how to use FK as string Schema::create('users', function (Blueprint $table) { // $table->bigIncrements('id'); $table->string('name'); $table->string("chat_id&...
jeevamugunthan jeevamugunthan
4

password problem when login

hello everyone in my project i store password direct string without hashing for some purpose ,now when i tried to login its says credential not matching what can i do , can...
joshsalway joshsalway
2

Adding Brands a User can see? eg. tags from database saved as pivot table

The feature is: A User can see only certain Brands and this is specified by Laravel Nova. User UserBrand (pivot table) Brand How would you use Laravel Nova to...
Nova
2
266
mooseh mooseh
4

Facade Shortcuts?

Hi Everyone I have been making my own facades for quite some time and I realised I don't know how to create a shortcut method. for example XmlToArray Facade how can...
Create a New Discussion Button