uniqueginun uniqueginun
0
I have issue passing image property from child to parent component here's base component: <div> <livewire:child-component /> </div> <?php namespace App\Http\Livewire; use Livewire\Component; class BaseComponent extends Compo...
ziayamin ziayamin
4
I have three tables like these: Expense:- expense_id user_id User:- user_id employee_id Employee:- employee_id first_name last_name I want to get first_name and last_name from the employee table where expense.user_id = user.user_id, I tried somet...
Hey there, I have a Posts Table, where the Titles of the Posts can be the same. Iwant to query my Posts Table so that it only returns one element for each duplicate row. Example: id: Titles: Content: 1 Test1 some message 2 Test2 some message...
leonvr leonvr
5
On mount of my livewire component send.php & send.blade.php: if (!$this->invitation->active) { $this->activateLink = route('wishlists.invitations.edit-active', ['wishlist' => $this->invitation->wishlist_id, 'invitation' =>...
leonvr replied
Solved
pouyabh pouyabh
4
Have you ever encountered this error and how did you solve it? InvalidArgumentException Unable to locate a class or view for component [layout]. I think the problem is from here But I don't know how to solve it <x-layout> @include('_posts-...
zaster zaster
3
I thought of designing my ER Diagrams through mysql workbench and then convert those to laravel migrations. This seems to work well The other way round works too (Reveres Engineering) Is this a good way of doing things I am a solo developer I need to...
deep88 deep88
1
"roletypes": [ { "id": 1, "title": "Actor", "category": "Performers", "role_position": "ON-SCREEN", "parent_id": 0, "deleted_at...
Gsom1 Gsom1
2
I started a new project on Lumen and found that there is no artisan config:cache. What is the best way to cache config, routes in Lumen?...
Mubeenali Mubeenali
7
Hello i want to create an online tool in which users can create animated videos or edit the videos same as animaker.com.. I am searching but not getting what i need.. Please give me the dirction to gain this goal.. Which languge or which thing is pre...
ZaIhany ZaIhany
1
I started a laravel 8 + jetstream + vue3 + inertia project. I'm not used to using tailwind and I have installed jetstrap. My question is, which Admin template compatible with vue3 do you recommend? (I did some research but BootstrapVue, Vuetify and C...
chrisgrim chrisgrim
6
I will try to explain this as clearly as possible, but I am struggling. I have a top level model called Scenarios. Then under that I let users create Forecasts which each can belong to the same Recipe and have UnitCases to store case number Scenario....
Tray2 replied
Solved
I'm searching for the best pratice where to use permissions in Laravel: in Controllers? Use Policies? FormRequests? In Routes or in the Model? Or...? Please share your thought :) Ofcourse, we can do this: PostController.php $user = auth()->user();...
sethphat replied
Solved
yafeearun yafeearun
14
Hi guys i have tried to send a mail and i write a mailable like public function build() { $address = '[email protected]'; $subject = 'This is a demo!'; $name = 'Jane Doe'; // print_r($this->data['message']);die();...
zaster zaster
2
How can i make something like this work Please focus on $user_type => 1 if($input['user_type'] == 2) $user_type = 'is_customer'; elseif($input['user_type'] == 3) $user_type = 'is_employee'; elseif($input['us...
zaster replied
Solved
andiliang andiliang
7
Hi I have a collection ,what I want is to combine the collection and sum it, example: [ { "express_fee": 0, "provider_template_id": 501, "provider_id": 263 }, {...
JavedBaloch JavedBaloch
1
data() { return { form: [ { selected: false, allocated_seats: 0, gender_distribution: false, girls: 0, boys: 0, admission_fee: 0, academic_fee: 0, tui...
requincreative requincreative
0
I am working to implement the Cisco Duo Security MFA option using their Web SDK PHP wrapper found here: https://github.com/duosecurity/duo_universal_php I am comfortable with their auth workflow so the issue I am having is how to leverage it in Larav...
Randy_Johnson Randy_Johnson
2
I have asked help earlier and got this $this->attendances = Student::whereHas('attendance', function ($query) { $query->where('teacher_id', $this->teacherId); })->get(); Which is perfect but I also need the informatio...
Prido Prido
1
I have a DB transaction. DB::transaction(function() { foreach($products as $product) { $product = Product::find($product->id) ; $product->price = 2; $product->update(); } }) ; I want that If any of the products is updated we fire an event...
tykus replied
Solved
noblemfd noblemfd
4
In my Laravel-8 restful API application, I am using Laravel Passport. I have this code in my request rules: public function rules() { return [ 'emailOrPhone' => 'required|string', 'password' => 'required|string', 'remember_me' =...
simonw simonw
3
Hi, I'm writing an API that contains a set of public/private endpoints using Laravel (6) and Passport. However, I have a use case where a second application will need access to the same endpoints, PLUS a set of new endpoints that should only be avail...
elliotk elliotk
2
Hello, I have a query which isn't working as I want it to. Product::with(['categories' => function ($categories) { $categories->enabled(); }]) ->with('media')...
elliotk replied
Solved
noblemfd noblemfd
1
In my Laravel-8 application, I am trying to bind Repository to an Interface I have this code: App\Providers\RepositoryServiceProvider: class RepositoryServiceProvider extends ServiceProvider { public function register() { $this->ap...
tisuchi replied
Solved
Randy_Johnson Randy_Johnson
10
In my code I am creating a new student, and I then have to create an attendance for the student as its created: public function addStudent() { $name = $this->studentName; $surname = $this->studentSurname; $studen...
alexlegard alexlegard
4
I'm a beginner Laravel developer with a portfolio website. On there, I have two Laravel projects which I would like to show to employers. They're a little old (8 months and 2 years respectively). I also have them on Github, and on there, Dependabot...
jpmg jpmg
15
hello everyone. I have a problem to login in 2 app the I have in my Virtual Machine in DigitalOcean, say that my ip to login in DigitalOcean is 134.209.XXX.XXX and in my var/www I created two directory one is hidroclient and the other one is fotincli...
TarikAli TarikAli
1
Hello, i have project with many small lookup tables . i want to make one lookup table to store all lookup data with an extra field "type" so i can differentiate between data . is this a good idea? Thanks...
TuffRivers TuffRivers
3
Hi All, I have a simple laravel 8 MVC app that i have a few tables i want to use datatables for, whats the best way to implement this? Simply with a jquery data tables library? (https://datatables.net/) or using something more laravel-y like (https:...
warpig warpig
4
After working on the project during the week I introduced some new tables, altered some columns but now that I've deployed the changes to github and then deploying those changes on Heroku, after accessing the site online, I get a 500 Server Error. W...
tykus replied
Solved
zanix zanix
2
I would like to create some audiograms from video or audio files and .srt or .webvtt caption files. Is there any library known which could help with that? It's probably possible to achieve that with FFMPEG but it would be a lot of work I assume. :/...
LuciferSam LuciferSam
1
Hello there, Laravel newbie here :) I wrote a RESTful API and I've enabled Sanctum and the tokens work without problems. Here my problem and question. When I receive a token I should check a custom table on Database and if in this table I have some f...
abdulkhan abdulkhan
2
I have a delivery table with deliveryNumber as the primary key of varchar 10, due to the special requirement: DeliverySart with "00" and has one to many relationships with Items and Packages. Sql: $order= Delivery::with(['deliveryitems', 'i...
kodeninja kodeninja
2
I've had a Guzzle ClientException thrown in a job's handle() function and so the job was endlessly returned to the queue and retried, although I've set public $tries = 1;. Reviewing the code it seems RuntimeException is not caught and since the job...
eshban eshban
0
I am trying to Install Laravel Package via CLI by using this command: composer require barryvdh/laravel-dompdf and I got following error message every time I run the above command: Fatal error: Allowed memory size of 1610612736 bytes exhausted (trie...
Aontaigh Aontaigh
4
I've previously implemented Laravel Passport for validating users of an API. I'm currently looking to use Laravel Sanctum. This will not be for validating users but for validating machine to machine interactions (API to API). The documentation is foc...
Create a New Discussion Button