TomyLimon

Experience

220

0 Best Reply Awards

  • Member Since 1 Year Ago
  • 0 Lessons Completed
  • 0 Favorites

18th April, 2018

TomyLimon left a reply on First Try • 2 months ago

@rin4ik I went through this forum and find a solution In somename.blade.php {{ message }} not working, working @{{ message }}

TomyLimon left a reply on First Try • 2 months ago

Can't understand what I did wrong

TomyLimon started a new conversation First Try • 2 months ago

Hi. I want to try Vue. Take sample and run it.

My first Vue app
  • {{ item.message }}
var example1 = new Vue({ el: '#example-1', data: { items: [ { message: 'Foo' }, { message: 'Bar' } ] } })

Result

message message

29th March, 2018

TomyLimon left a reply on Getting Multiple Instances Of A Product • 2 months ago

@Nikki Remove it from rout and in Product page you can show all productsCat and put checkbox checked for related cats

TomyLimon left a reply on Getting Multiple Instances Of A Product • 2 months ago

You cant remove clones of product because it's different object.

in case if you can remove $category->slug from

<a href="{!! route('product.item', [$category->slug, $product->slug]) !!}">
    

it can be transformed to


@foreach($products as $product)
    $cat_slug = "";
    @foreach($product->productsCat as $category) 
        $cat_slug .= " ".$category->slug
     @endforeach 
    <?php
                $product_image = getImagesArray($product->image);
            ?>
            <div class="product_category_item {{ $cat_slug }}"> 
                <a href="{!! route('product.item', [$product->slug]) !!}">
    ...

28th March, 2018

TomyLimon left a reply on Sortable Images With JQuery Ui-sortable And Laravel • 2 months ago

Ok. Here is a problem. You try to send information with no csrf_token

You need add csrf to your request. Add this line in your layout.blade.php header section ... ...

Add this line in your JS file $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } });

TomyLimon left a reply on Sortable Images With JQuery Ui-sortable And Laravel • 2 months ago

Hi. Please add here your html->FORM.

20th March, 2018

TomyLimon left a reply on Redirect To The Previous Page After Registration And Login • 3 months ago

Is it possible to get URL as a string? I need send it as JSON respons

TomyLimon left a reply on Redirect To The Previous Page After Registration And Login • 3 months ago

Hi. Did you find solution? I have made custom Login/Registration and right now login redirect go to "home" page.

19th September, 2017

TomyLimon left a reply on MODEL->save() Error • 9 months ago

@thomaskim Many thanks. I change function name and all fine now.

18th September, 2017

TomyLimon left a reply on MODEL->save() Error • 9 months ago

TomyLimon started a new conversation MODEL->save() Error • 9 months ago

Hi. I have strange situation. I have model Document and problem is

$doc = Document::find(2); $doc->save();

as result I'm getting error

SQLSTATE[42S22]: Column not found: 1054 Unknown column '0' in 'field list' (SQL: update documents set 0 = {"id":4,"document_id":2,"unit_id":107,"unit_name":"Balons no komp. materi\u0101la, 6,8 l / 300bar, 30 gadi, ar AZA ventili ar av\u0101rijas nopl\u016bdes

Problem is field list in SQL is taken from different table. I can't understand how/whie....

20th February, 2017

TomyLimon left a reply on Link Not Working • 1 year ago

@anmol Please check is some values in

Posted In:{{$post->category->name}}

$post->category is NULL and you try to get access to NULL->name.......

TomyLimon left a reply on Find Out All Logged In Users • 1 year ago

@psychomantis101 suggested solution by @Mittensoff is good if in your system will working be some 10-30 users. In case if you have some 100 active users and each click add SQL to update user record (alive) + check for other users status SQL DB will die or your system will work slow.

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.