elliotk elliotk
3
Hello, I need some help with my first Alpine / Blade Component. I have built a model component, which accepts a title and a body and displays the content to the user. When a small body of text is passed, everything is working fine. When I try and pas...
jlrdw replied
Solved
shimana shimana
1
I have this tables: users permissions roles role_user permission_role i want check Permissions through roles . i use this function : public function hasPermission(Permission $permission) { return $this->hasRole($permission->r...
jlrdw replied
Solved
Hello, trying to do tweety , seems like it is asking for a loop but I am not sure @extends('layouts.app') @section('content') <header class="mb-2"> <img src="/images/banner.jpg" alt=""> </heade...
tykus replied
Solved
saulsolorzano saulsolorzano
3
Hi! I'm using laravel 8.5 and laravel Sail. I'm trying to test a job but is not being dispatched, no matter what I do. Here's my code Event::fake(); TheProductDoesNotExists::dispatch($this->channel, $document['product'], $document['name']); Event:...
calin.ionut calin.ionut
1
My vue 3 component (dropzone-cropper - laravel mix) was making a request to the laravel api (laravel 6 - passport) "/api/admin/products/upload-image" using this header: var myDropZone = new Dropzone('#myDropzone', { url: thi...
connorm connorm
9
I have a project with a concept of Vendors, where there needs to be a "vendor" restful resource. I would really like to name this "vendor". Route::resource('vendor', VendorController::class); What I am running into is after setti...
connorm replied
Solved
trifek trifek
1
Hi, I am beginner in Laravel. I make my project in Laravel 8. I have this code: $items = $this->selectedProductIngredient->where('single_product_analysis_id', $id)->where('group_id', 0)->where('type', 1)->get(); This is my items / val...
jlrdw replied
Solved
ottaviane ottaviane
1
Hi all, I'm not able to use spatie in my laravel... I'm struggling! This is the code: <?php namespace App\Http\Controllers\Documents; use Illuminate\Support\Facades\Storage; use Barryvdh\DomPDF\Facade as PDF; use Spatie\PdfToImage\Pdf as JPG; us...
Hello, so at my Company we are implementing Laravel Passport as an OAuth solution for our Service Architecture. Lets say there is a Job running in one Service , call it Order Service, thats wants information about the Products so makes an https reque...
mecjos replied
Solved
Deekshith Deekshith
2
i have a shortcode like below [Linkref 1] [Linkref 2] and i have a code like below, $results = preg_match_all('/\[LinkRef (\d+)]/', $contentget, $matches); Above code is working fine and it results array like below, ['1','2'] Now i want to add a...
ottaviane ottaviane
4
Hi all, I have this code in my controller that loads a list of records from the tab 'Allegati' and insert in any record a customized value 'op' public function getAllegati(Request $req){ $id=$req->id; //preleviamo gli allegati...
Deekshith Deekshith
6
Hi, i have created some shorcodes like below, [Figures 10] [Figures 11] Here 10 and 11 are figure id's and every figure id has some html data. Now i want to replace [Figures 10] and [Figures 11] with the respective HTML data. Example: <p>Some...
ale1981 ale1981
2
Before I go ahead and purchase Nova can anybody confirm that Laravel Nova works with LdapRecord https://github.com/DirectoryTree/LdapRecord-Laravel ? Thanks...
ale1981 replied
Solved
LaCoder LaCoder
6
hello, Can we use the markdown mail template in Notifications as a view? I am trying same and getting below error, message: "No hint path defined for [mail]. (View: /Project/resources/views/emails/paymentpaid.blade.php)" Here is Notificat...
kendrick kendrick
4
I have a cities_table which holds different cities. Currently in a form, a user can choose a city like: <select name="city_id"> @include('partials.cities') // I use this partial to offer the correct translation of a city // <op...
Ajvanho Ajvanho
4
I installed laravel ui, and try to run npm dev ? npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @ development: `mix` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @ development script. npm ERR! This is probably not a problem with npm. Th...
Ajvanho replied
Solved
finchy70 finchy70
5
How do I change the email sent for password reset by Laravel Breeze?...
warpig replied
Solved
vkronlein vkronlein
33
I could have sworn that I saw someplace, either a plugin for Mix, or maybe webpack, that would allow you to extract single page vue component styles to their own stylesheet during compilation. Am I trippin? Or is this a thing and I just can't find th...
sandaur sandaur
7
Hello again, i have two dates, date_from and date_to, they both are optional but if they are present at the same time date_from has to be a date before date_to. I could apply after:date_from to the date_to field but that would be checked even if date...
Jakub003 Jakub003
1
I am trying to follow the guide on the laravel cookbook series for props. I am trying to pass the value of 1 to the component to set the color. <x-button.kanban-tag name="{{$tag->title}}" color_id="1"/> @props([ 'nam...
mecjos mecjos
1
I wonder what are the main logic behind api resources except adding meta data to response.. And what are the differences between api resource collections and http json responses. I get same response when I get http json response by returning return...
UNITEAD replied
Solved
warpig warpig
1
I want to access my roles() method because I need to fetch only users with roles, how do I do that? User.php public function roles() { return $this->belongsToMany(Role::class); } @foreach ($users as $roleUser) <p>{{ $...
HOVO HOVO
12
Hello dear reader i have a problem i need to implement this query without interpolation to avoid some sql injections here is my code. thanks) $q->orderByRaw(DB::raw("COALESCE(mpp_start_date, start_date) $start_date_order")); $start_date...
Tell me please how can I order my users list by relation (product) field for example i have |users product_id | products |1.jhon 2 | 1.cup |2.dhoe 1 | 2.pen and i want get ordered all users by -> cup and...
fylzero replied
Solved
murilo murilo
1
Hello , I am working with , don Crawler - https://symfony.com/doc/current/components/dom_crawler.html I have a question , I dont know if some one has solved this problem here . I want to get a LINK that is a javascript onclick property THAT IS IN MY...
I am trying to call a livewire component method inside the blade template, but I am getting an "undefined method called" error. Do there any workaround to solve this problem? Livewire Component:: class AskQuestion extends Component { publi...
welter replied
Solved
msaad msaad
4
Hello Friends, I want to ask that I am using the cart package in laravel. in Controller: use Gloudemans\Shoppingcart\Cart; Cart::add([ ['id' => '293ad', 'name' => 'Product 1', 'qty' => 1, 'price' => 10.00, 'weight' => 55...
lemmon replied
Solved
kramsuiluj kramsuiluj
2
I'm currently getting this error: Argument 1 passed to App\Providers\AuthServiceProvider::App\Providers{closure}() must be an instance of App\Providers\User, instance of App\Models\User given, called in C:\Odi\Laravel\fos\vendor\laravel\framework\src...
Wakanda Wakanda
1
Hi de, I have an array like array:40 [▼ 0 => array:8 [▶] 1 => array:8 [▶] 2 => array:8 [▶] 3 => array:8 [▶] 4 => array:8 [▶] 5 => array:8 [▶] 6 => array:8 [▶] 7 => array:8 [▶] 8 => array:...
Wakanda replied
Solved
Hi there, I don't how I can get the last characters of my string. What I am making is a read more button, in the first part it gets the characters from 0 to 100 (works fine), but then in the second part I want all the characters from 100 till the end...
Johny-22 Johny-22
6
Hi everybody How could I restrict / disable the view thank-you to which I redirect a customer after a successful process? Now everyone who calls / thank-you is public so the u view appears. Could this be disabled so that this view is displayed only...
sukhchain sukhchain
2
I have two Models named Product and Merchant. Product contains basic data of a product and Product can have multiple Merchants. Merchants contain pricing of each product, SKU, etc. Now I want to order Products based on the First merchant price. Merch...
Proudje Proudje
2
Hello, I want to get all the id's from my json column This is is what I have for just a single id ->whereIn('a.product_id',function($query){ $query->select('product_id')->from('commen.bought_with'); })...
Proudje replied
Solved
Hello everybody, Actually I am still working on my private messaging app. To load new notifications, I would like to use a PrivateChannel. This is what I'm doing at the moment: bootstrap.js import Echo from 'laravel-echo' window.io = require('socke...
ahoi replied
Solved
AjaxTest AjaxTest
3
I want $key to reset or subtract if the condition is not fully filled. @foreach($maps as $key => $map) @if($map->is_public == 1 || Auth::user()->roles->first()->name == 'super' || $map->admin_id == Auth::user()->id || $map->a...
Create a New Discussion Button