nonanovi

nonanovi

Member Since 7 Months Ago

Experience Points 690
Experience Level 1

4,310 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed 0
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • Chatty Cathy Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

14 May
1 month ago

nonanovi left a reply on Sorting In Many To Many RelationShip

@RESPECT - this will work fine of course if i have single table without relationship with the other, but i dont

nonanovi started a new conversation Sorting In Many To Many RelationShip

i am currently developing a product sorting feature. product listed based on tag/category. so the listed product is listed this way controller ->with('products', $tag->products) view

{{ $product->name }}
@endforeach```

my pivot table between product and tag contain only two column : product_id, and tag_id,

on my sorting feature, the sorting possible are : A-Z, Z-A, price high to low, price low to high, etc. where the columns for sorting exists on products table - not on the pivot table. how i can to sort product based on that sorting keyword ? what i should do in my controller or maybe on my model ?
10 May
1 month ago

nonanovi started a new conversation Foreach Blade Return Only One Row - Laravel

i want to get the list of product based on its tag, i have many to many relationship declared. and on my controller, i did something like this $tag = Tag::where('slug', '=', $slug)->first(); where returned a single row of tag. on my view, i did something like this

@foreach($tag->products as $product)
$product->name
@endforeach

but it just looped the first row, while actually it hasmultiple row (products). what i know is that there's something off about object or array and i am confuse about both. so, what should i do to get everything right ?

08 May
1 month ago

nonanovi left a reply on Old Value For Checkbox Multiple - Laravel

@FTIERSCH - uh, this is exactly what i need, got dizzy for 1 day anyway :( thank you :)))

nonanovi started a new conversation Old Value For Checkbox Multiple - Laravel

so, i make a checkbox multiple on my edit.blade.php some of the checkbox value are checked but the rest are not. i make an if condition using in_array, the accepted value for the second param of in_array function is array NOT an object, ex : [1,2,3] but in this case what i have is an object. so, i cast that object into array but what i actually need is an array of this value :

foreach($variant->tags as $val)
$val->id // this value
endforeach

@foreach($tags as $tag) @if(in_array($tag->id, $variant->tags->toArray())) {{ $tag->name }} @else {{ $tag->name }} @endif @endforeach


anyone of you know what to do to solve this, please :(
23 Dec
6 months ago

nonanovi started a new conversation The Best Endpoint For This Scenario - WEB API

i am currently involved in refactoring website as the previous web is such a mess and unmaintained. my ticket is to provide data in json for footer section and create functions for data manipulation (create, edit, delete, retrieved, detail).

footer section has two column, the left one is everything related to policies (return, exchange, etc) and the right one is everything that has list like : contact us, faq, location etc.

the condition is that the left side is actually using the same model (table) and each list on the right side is using each different model (table), while they want it to be able to be manipulated. but also want it to has the same endpoint.

so, as they want it dynamic. i create a brand new table to put all list of footer (left and right) and i flag them using like position/is_left/is_center column. by this, i can provide a list of footer (left and right) dynamically.

and when user create a new footer, they must have a brand new path/slug, but i have a problem to provide a detail information of the list (when i click a specific list , it return the detail information) as they use different table.

can you understand me , and what to do to handle this scenario ?

22 Dec
6 months ago

nonanovi left a reply on Do I Need To Update The Updated_at Column When ...

@ZION - what if the context is not in laravel but the other programming framework like golang or nodejs, where they dont have things like timestamps (?)

nonanovi started a new conversation Do I Need To Update The Updated_at Column When ...

when i have a function name activate and/or deactivate, its function used to change like is_active column to true/false or 1/0. when i run that function, do i need to also update the updated_at column ?

why ?

10 Dec
6 months ago

nonanovi started a new conversation Image Storage Things -laravel

i have an image that already coverted to base64. what to to in this line of code so that i can store that image to ex : image_generated_name.jpg.

            $info->image = Storage::url(
                $request->file('image')->store('info', [
                    'disk' => 'public'
                ])
            );
        }```

i did like decoding the encode image using : ``` file(base64_decode('image')``` but it dont work

why, what wrong, and how ?

nonanovi left a reply on Updating Image Using POST On Postman Dont Work

@TYKUS - what a shame, this actually is the answer. i dont register it as fillable. thanks @tykus :))

nonanovi started a new conversation Updating Image Using POST On Postman Dont Work

i create a function to update table content. one column of the table is image. on postman, i fill the body to replace/update image like this : image => 'image text after generated using base64_encode

i run the function, everything works fine except that image-table.

why, and how i fix it ?

21 Nov
7 months ago

nonanovi left a reply on Fetching Dinamic Id On Html Tag

@AHMEDDABAK - if my case is i want to delete image using span

@foreach($tutorial->image_urls as $key => $url)
                            <div class="container">
                                <img id="id-{{ $key }}" class="myImg" src="{{ url($url) }}">
                                <span id="{{ $key }}" class="btn-remove-image span-{{$key}}">&times;</span>
                            </div>
                            @endforeach                             

when span clicked, it will remove specific image based on its id

here is the jQuery :

$(document).ready(function(){
            $(".btn-remove-image").click(function(){
                var img = $('.btn-remove-image').attr("id");
                $(".myImg").remove("#id-"+img);
                $(this).remove();
            });
        });

using that script, the .btn-remove-image always delete image based on its order, even if i click the span for image number 2, it delete the image number 1.

what i want actually is just something like dynamic selector, and that $.each() things dont work on me. so,

can you spare me your insight please

nonanovi left a reply on How To Pass Dynamic Selector Value To Jquery

@PAPA - i did this but it didnt work on me, the return value is undifened

nonanovi started a new conversation Fetching Dinamic Id On Html Tag

i have images stored as an array and i give its id based on its key from foreach loop. here is my code :

<img id="img{{ $key }}" class="myImg" src="{{ url($url) }}">

on my jQuery script, i want to store the src attribute using its id as selector, what's the correct code to be placed as selector (considering that the id is dynamic)

var id= $("what to type in here?").attr("src");
16 Nov
7 months ago

nonanovi left a reply on How To Delete Images On Array Laravel

@VAJID - so, this scenario means i delete the image that stored on db immediately (?)

and if so, actually i have a problem calling the id :(

nonanovi started a new conversation How To Delete Images On Array Laravel

i have images showed up on foreach, i want to be able to delete each of them that can work before submitting/updating a whole form.

can i, and how ?

13 Nov
7 months ago

nonanovi left a reply on My Laravel Web Redirect All To Https Except One

@WARDKENNES - i push this code to server but it returns an error

09 Nov
7 months ago

nonanovi left a reply on How/what's The Best Way To Make A 'review Product Feature' ?

currently working on both solution, thankyou very much for the sight @bozhkos @39dg :)))

08 Nov
7 months ago

nonanovi started a new conversation How/what's The Best Way To Make A 'review Product Feature' ?

here is the scenario :

my product owner wants it that her website is able to cover the 'product review' from member (logged in) and non-member (guest). she also wants to be able to see the reviewer name.

but right now, it just only cover the product review from member, while the name is retrieved from user table.

considering the model, table needed, controller, and view. what's the best scenario to achieve that need ?

  • storing the review from guest in the same table with the member
  • or creating a brand new model, view, and stuff. means separating review between member and non-member
  • or else

can anyone give me a best effective solution ?

nonanovi started a new conversation My Laravel Web Redirect All To Https Except One

got the issue where my laravel website already redirect to https (as we want it) except one link that set on head->meta property og:url content. we set something like this on the head :

but it turn out to be http instead of https, while the other link redirect to https.

not sure that i have to customize the .htaccess, or something like force-to-https on appProvider. so, why, and what sould i do ?