Charrua Charrua
1

Where to place logic to check and compare model on request

Hi, I wanted to compare and check every Transaction model when is requested. Our problem is that some people of our sales team is selling products with...
atfinho atfinho
3

Sending mail issue

Hey guys , I'm trying to send an email with smtp but I'm keep getting an error Failed to authenticate on SMTP server with username "[email protected]" using...
RainMakr RainMakr
4

Cookie::get vs $request->cookie()

So, I have this app, where I set a cookie over Ajax. Am not able to read the cookie when I reload the page, but am able to read it over Ajax. So, basically, i...

MethodNotAllowedHttpException with Laravel5.4 when uploading files bigger than 1MB online, but it works perfectly on localhost

I'm using Laravel 5.4 for my website, and I'm getting a problem when the user tries to upload files bigger than 1MB. This problem doesn't appear on localhost. The error I g...
zonkedcode zonkedcode
6

Simple use of eloquent join

Here is how this package will be useful :) : Facilitated how to write join in your codes. Make aliases in your tables during your queries. Re...
Triumfator Triumfator
1

App.js conflict with Bootstrap CDN

While learning VUE i discovered that if App.js is loaded, my bootstrap dropdown navbar menu stopped working. Correct me if i'm wrong, but upon further examination I discove...
MadMaks MadMaks
2

Change data from another Vue Element

How can i change this show data to true if i hit the destroy mehtod of the second element?? <script> new Vue({ el: '#flashMessage',...
Vue
2
26
rojonunoo rojonunoo
17

The given data was invalid

I am building an API using laravel 5.5 and i am implementing a store method with validation. In a normal laravel application if any of the fields fail you get the "Fie...
Laravel
17
4014
demoskp demoskp
1

Multiselect Vue data properties and methods missing

I am trying to use multiselect Vuejs component but I am getting the following errors: Property or method "options" is not defined on the instance but refer...
Vue
1
32
PhoeniX5 PhoeniX5
12

DataTables error

Hello, I am trying to install DataTables in my laravel app but I keep getting errors while running this command : composer require yajra/laravel-datatables-o...
Laravel
12
105
david001 david001
4

Send email verification link for custom registration

How can i send email verification link for custom registration in laravel 5.8 I have two type of users , so for one type of user i used default registration system and i di...
pllaguno pllaguno
4

Understanding token usage auth

I am trying to learn how Laravel works, i have been digging real deep on the password reset function of the native Auth. what i don't find is in which part is the token mat...
twiggy99 twiggy99
2

Should validation be in the controller?

I have a very simple input of one text field which posts to my controller's store method where I validate the request and then if valid will go on and store it in the datab...
Aricia Aricia
9

When I change the quantity of my items, the total doesn't update (PHP)

When I add a number of items in my shopping cart, the total at the bottom of the page change. But when I change the quantity of my items, the total doesn't update....
General
9
155
Balawant Balawant
15

laravel app to mobile app .How to convert ????????

Dear All, Is it possible to convert my laravel applection to mobile application????????? If is it possible then how we can convert it .Please guide me .Whats the way .....H...
General
15
116
PaulCatalin97 PaulCatalin97
1

fata error, Call to undefined function test_input()

if (empty($_POST["email"])) { $emailErr = "Email obligatoriu"; } else { $email = test_input($_POST["email"]); // check if e-mail ad...
Rufhausen Rufhausen
5

Expanding dd() (VarDumper) by default?

Does anyone know if it's possible to have the new dd() using vardumper expand x levels automatically for display, instead of having to drill down manually each time you nee...
General
5
748
xeeshan xeeshan
2

multiple ajax calls in one controller function : HELP

Hello Guys im loading 2 arrays of data in one view code is below: public function index(){ $music=Feature::where('video_type', 'Music')->paginate(8)...
Laravel
2
115
cliveportman cliveportman
1

How to remove mysterious redirects in Laravel Forge?

Hi. I'm trying to get a setup like so: Main domain: sub.domain.com Parked domains: www.domain.com, domain.com The site is correctly setup with sub.doma...
PaulCatalin97 PaulCatalin97
1

undefined index: id, image, name, price

does anybody know why do i get this error ? this is the error file <?php //fetch_item.php include"conexiune.php"; $query = "SELEC...
PaulCatalin97 PaulCatalin97
5

Undefined index: id,image,name,price

<?php //fetch_item.php include"conexiune.php"; $query = "SELECT * FROM tbl_product ORDER BY id DESC"; $statement = $con->prepare($quer...
kodeninja kodeninja
4

When to clear each of the cache types?

Hi, These are the artisan commands I know which clear cache: route:clear config:clear event:clear optimize:clear route:clear view:clear cache:clear I know I'm...
donkfather donkfather
2

Update on polymorphic relation

Hi. I am trying to update a polymorphic relation.. I have this setUp: Test $this->up->addLanguage(factory(\Models\Components\Language::class)-&g...
Laravel
2
823

Polymorphic relationship updating

What is the correct way to update a polymorphic related record? I thought I should be able to do something like this: if ($request->has...
Laravel
3
479
freel freel
14

ubuntu error message extension missing

Hello, I am installing package pusher/pusher-php-server and getting error. Please see below. Can someone explain what is the problem. I don't have any idea what kind of pro...
Servers
14
801
chim0r chim0r
3

Caching external images local

Hey, my site checks every 15 minutes new RSS-Feeds with Simplepie (https://githu...
kundefine kundefine
5

Prefix route Problem

colorspray.ku/dashboard not working. give me this error Access forbidden! You don't have permission to access the requested directory. There is either no index docum...
Kunzilla Kunzilla
5

Exclude users if a user relationship exists

Hi there, i build a small social platform where a user can "follow" a user. I've created a "relation" table with the user ids (A->B, B->A). Now i...
irankhosravi irankhosravi
6

Array to string conversion

Look at my codes web.php Route::get('/code', '[email protected]')->name('code'); Route::post('/send', '[email protected]')->name('send');...
yafeearun yafeearun
8

page not found - except route proplem

Hi i have tried to add a url product/test without csrf token verification and i done the following steps added route in routes Route::post('pro...
Himanshu_wkd Himanshu_wkd
6

Getting values from radio button

Guys, I am having one radio button for gender. The values is inserted into the db. Now I want to retrieve that value and the radio button to be checked with the value recei...
duckz1209 duckz1209
8

Distinct and orderBy not working

did distinct and orderBy are not allowed in one query?...
binalfew binalfew
3

How to record a screen cast?

Everytime I watch a laracasts screencast I can't help but wonder how Jeff does it. I mean, how come one code while talking? Is it voice over? Please guide me to a resource...

WYSIWYG image upload

I am creating a forum and using Trumbowyg text editor for thread and comment textareas. I want my users to be able to upload images to comments and threads using Trumbowyg'...
eternalchaos520 eternalchaos520
11

htmlspecialchars() expects parameter 1 to be string, array given

Hi Community, when I tried to cast sc_cp, sc_material, sc_grade to array in model. Store method is work perfectly by storing the data into database and the fi...
Create a New Discussion Button