jlrdw

jlrdw

Member Since 3 Years Ago

Experience Points 259,890
Experience
Level
Lessons Completed 79
Lessons
Completed
Best Reply Awards 262
Best Answer
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.

16 Nov
20 hours ago

jlrdw left a reply on CSRF Problem With Mobile Only!

Since you are using Vue and axios, I'd start at there websites and look for any hints as why on mobile there is a problem. Usually just an added line of code can help.

Start with axios site, as this is usually the problem.

jlrdw left a reply on CSRF Problem With Mobile Only!

Is it an older mobile browser, as there has been issues.

jlrdw left a reply on CSRF Problem With Mobile Only!

Is javascript enabled.

jlrdw left a reply on 500 Internal Server Error - Submitting Form To Route Through Ajax

Where is the form, I see no form tags.

jlrdw left a reply on Hide Fields In Paginator

First, I have no idea why you would want ti hide a pagination link. But you can write any pagination template you need, you are free to do that. The docs under pagination explains it,

As example here is a custom template I use:

@if ($paginator->hasPages())
    <ul class="pagination pagination">
        {{-- Previous Page Link --}}
        @if ($paginator->onFirstPage())
            <li class="disabled"><span>«</span></li>
        @else
            <li><a href="{{ $paginator->previousPageUrl() }}" rel="prev">«</a></li>
        @endif

        @if($paginator->currentPage() > 3)
            <li class="hidden-xs"><a href="{{ $paginator->url(1) }}">1</a></li>
        @endif
        @if($paginator->currentPage() > 4)
            <li><span>...</span></li>
        @endif
        @foreach(range(1, $paginator->lastPage()) as $i)
            @if($i >= $paginator->currentPage() - 2 && $i <= $paginator->currentPage() + 2)
                @if ($i == $paginator->currentPage())
                    <li class="active"><span>{{ $i }}</span></li>
                @else
                    <li><a href="{{ $paginator->url($i) }}">{{ $i }}</a></li>
                @endif
            @endif
        @endforeach
        @if($paginator->currentPage() < $paginator->lastPage() - 3)
            <li><span>...</span></li>
        @endif
        @if($paginator->currentPage() < $paginator->lastPage() - 2)
            <li class="hidden-xs"><a href="{{ $paginator->url($paginator->lastPage()) }}">{{ $paginator->lastPage() }}</a></li>
        @endif

        {{-- Next Page Link --}}
        @if ($paginator->hasMorePages())
            <li><a href="{{ $paginator->nextPageUrl() }}" rel="next">»</a></li>
        @else
            <li class="disabled"><span>»</span></li>
        @endif
    </ul>
@endif

But you need to on your own learn css (not a library) and you will discover how to handle things like you ask. A pagination link is just that, a link with css style applied.

jlrdw left a reply on Callback

@davy_yg it is to make the rest of function wait. Go to

https://www.w3schools.com/jquery/jquery_callback.asp

And read what it says.

15 Nov
1 day ago

jlrdw left a reply on Can't See All Option In Dropdown Because Of Pagination

If you have a large number, you could use a modal popup lookup table. You could even provide a search. Imagine there being 20,000, and user only needs vendors that start with Da for example. SO a search box user types in da, and show only that.

Results like dave, davis, davey, etc.

Or even an auto complete feature.

jlrdw left a reply on Deploy On Shared Server

Hoss, if you go through the replies like page 2 or 3 or maybe 4 this stuff was just answered in detail come on people.

This topic has been covered so many times it's pathetic.

14 Nov
2 days ago

jlrdw left a reply on NotFoundHttpException In RouteCollection.php (Line 179)

Another install incorrect, with so many previous answers on how to properly do this stuff.

I myself have posted countless times the proper folder structure.

Yes I could post again but please could you just search it's there I promise.

jlrdw left a reply on Where Is The Laravel Documentation That Describes All The Methods And Stuff

Where is the Laravel documentation that describes all the methods and stuff

The api doesn't have all the stuff. Some places in the docs there are links to symphony api as well.

jlrdw left a reply on Shared Hosting Uploading Images

First read https://laravel.com/docs/5.7/requests#storing-uploaded-files

Next store the uploaded image, and just the file name in the database.

Next use the asset helper:

asset()

The asset function generates a URL for an asset using the current scheme of the request (HTTP or HTTPS):

$url = asset('img/photo.jpg');

Make sure you have in htaccess

    RewriteEngine On
    RewriteBase /laravel57/  # use your site here

And read these post:

http://novate.co.uk/deploy-laravel-5-on-shared-hosting-from-heart-internet/

https://laracasts.com/discuss/channels/tips/hosting-on-shared-server-best-practice

Asset helper usage:

<img src="<?php echo asset('assets/upload/imgdogs') . '/' . $row->dogpic; ?>" alt="" class="image">

Just that easy

12 Nov
4 days ago

jlrdw left a reply on Control Structures

Of course it is, it's a PHP framework. Normally for returned object result you use foreach

jlrdw left a reply on Limit HTTP Requests For Users Only

You should learn to use proper Authentication. But it depends on if it's a secure or none secure app. If you are dealing with any personal data you definitely want proper Authentication.

jlrdw left a reply on Discussions Page Built With ?

Take the time to learn to program something like this.

jlrdw left a reply on Limit HTTP Requests For Users Only

You probably need to look up using an API with lumen or laravel and Authentication.

And yes there is a learning curve but it will be worth it once you learn it.

There is a section in the documentation on API.

jlrdw left a reply on Laravel Rest Api With Vue Js Spa

Probably not that much difference in speed. A while back another forum member had a similar question, they went with laravel and disabled some of the not needed things in laravel.

Sorry, I didn't save the link to that post. But my feelings is if it's working, you can't go wrong with laravel.

11 Nov
5 days ago

jlrdw left a reply on What Is The Best Host Service For A Laravel Project?

And as a side note and not to mention this has been discussed many times before right here.

10 Nov
6 days ago

jlrdw left a reply on Do We Have A Mobile App?

I thought I had seen everything. First of all a mobile app is something that gets downloaded to the mobile device for whatever reason a game for example.

Just for site viewing a mobile app here is totally unnecessary.

Maybe some of you really need to study and learn exactly what a mobile app is and why there is a need for one.

08 Nov
1 week ago

jlrdw left a reply on Store Multiple Image Path In One Column Separated By ;? Yay Or Nay?

Sounds like you have made up your mind. If you intended to do it that way, why ask about it. Three others have replied the way we would do it.

jlrdw left a reply on Store Multiple Image Path In One Column Separated By ;? Yay Or Nay?

Just store in a related table and loop over them.

jlrdw left a reply on Insert Multiple Rows And Return All Their Ids In One Sql Query

Lock out outsiders from using.

Get current max id.

Do your inserts.

Query where id is greater than the max id mentioned above.

jlrdw left a reply on Laravel View Not Found...Godaddy Shared Hosting

What is your url and domain on godaddy if you don't mind sharing.

jlrdw left a reply on Laravel View Not Found...Godaddy Shared Hosting

Weird, one site I did on godaddy works. Of course I setup laravel properly:

http://novate.co.uk/deploy-laravel-5-on-shared-hosting-from-heart-internet/

Folder structure: https://imgur.com/Oo6k4Fp

You have to have correct folder structure, main laravel above public_html.

jlrdw left a reply on Samsung Phone And New Site

@jeffreyway

OK discovered the plus sign it was over to the right had scroll over.

My Participation, and the person who just replied parts are still missing.

My Participation it's only missing on mobile.

who just replied is missing all browsers.

jlrdw left a reply on How To Make Dependent / Cascading Dropdown In Laravel...?

You probably won't believe me, but honestly if you search this has been discussed and solved previously.

07 Nov
1 week ago

jlrdw left a reply on Add Items To Beginning Of Collection

Can't you just show one product with ratings paginated. If user wants to see another product, have a modal lookup table (with search) to select another product.

I doubt anyone will paginate through 13000 products, only products they are interested in viewing. Then only what type they want to see, i.e., red wine.

jlrdw started a new conversation Post Reply

Also noticed on new format that a post isn't updated with a name of who just replied like before.

jlrdw left a reply on How To Save Id In On Checkbox?

Agreed, I mentioned a while back to @irankhosravi just use individual checkboxes, it would make things easier. Yes more request and checking if isset, but still easier.

jlrdw left a reply on Add Items To Beginning Of Collection

If you want to use pagination, and you don't want these promoted products showing up at the top of every page, you need @tykus suggestion

Yeah a regular query.

jlrdw left a reply on Need Advice On Genealogy Feature In Existing Site

There are nested sets https://laravel-news.com/nested-sets-with-laravel-and-jquery

But I just use PDO with getPdo for such things. I set up temp tables to loop over.

For a normal pedigree, I set up a query like:

http://allenbrowne.com/ser-06.html

For progeny, I usually stick with 5 gen back.

For web, I only showed a couple of gens in pedigree.

jlrdw left a reply on Add Items To Beginning Of Collection

Instead of collection, just do a query with an order by.

jlrdw left a reply on Samsung Phone

Jeffrey might be using something that isn't supported by the version of your mobile browser.

I would sincerely think that he would support Chrome being it's one of the main three.

Also when trying to type in a reply the keyboard now gets in the way and the reply does not scroll down like.

jlrdw left a reply on Laracasts New Layout Is Awesome.

Laracasts new layout is awesome.

Maybe on desktop and tablets, but not on my Samsung phone.

And @jeffreyway normal pagination would be so much better.

Currently with many replies takes a while to scroll down, but pagination you could jump right to the last page.

jlrdw left a reply on Please Bring Back The Older Laracasts Design

@click sorry I meant samsung phone, also My participation and new discussion is missing. Galaxy j3 Emerge. I posted a new message on it.

All is good on desktop, firefox.

jlrdw started a new conversation Samsung Phone

The new format on a Samsung phone, Galaxy j3 Emerge is missing

  • My Participation
  • New Discussion

Using Chrome browser.

All is showing fine on desktop site, with firefox.

jlrdw left a reply on Please Bring Back The Older Laracasts Design

Where is the my participation link?

06 Nov
1 week ago

jlrdw left a reply on Problems With Datepicker

In the JS alert out something to see if it's working. If your assets are loaded it should work.

jlrdw left a reply on Problems With Datepicker

The actual datepicker looks like this:

        <script>
            $(document).ready(function () {
                $(".odate").datepicker({
                    showOn: "button",
                    buttonImage: "/crudv22/public/overcast/images/calendar19.gif",
                    buttonImageOnly: true,
                    dateFormat: "yy-mm-dd",
                    changeMonth: true,
                    changeYear: true
                });
            });
        </script>       

Of course you have to load jquery, the ui, and a theme if needed, as mentioned.

This line:

buttonImage: "/crudv22/public/overcast/images/calendar19.gif",

is for an image to click to open datepicker.

But this stuff is explained on the jquery ui site. That's how I figured it out.

jlrdw left a reply on How To Generate A Secure Random Password?

Actually a good Integrity background check should be spot-on.

jlrdw left a reply on How To Generate A Secure Random Password?

I doubt that anyone will actually listen, they will go on to store people's personal data with a very insecure system.

That's why I still wish there was an FBI background check for anyone programming anyting for any company in the United States.

05 Nov
1 week ago

jlrdw left a reply on How To Generate A Unique But Simple Id For Ticket?

Have you looked around, how about a combination of Julian date plus maybe a current millisecond in the current day, that's just one idea. Or even current week with a millisecond.

Any thing shorter would not have that many combinations anyway.

In an accounting package I did, I used current receipt number from a receipt book, a dash, and current date. End of year it's closed out for IRS, archived, and table wiped for new year, that's the best way.

Even if a new receipt book repeats numbers, the added date made them unique.

jlrdw left a reply on Is There A Way To Use A Different Database In The Backend?

Check the docs and see if you can use in with php. If yes, you can with laravel.

But you may need your own custom queries and connection, etc. I have no idea if what you want works with PDO.

jlrdw left a reply on How To Make 8 Entries On A Page

Anyway you could format the code.

jlrdw left a reply on How To Store Laravel Session In Local Storage Or Web Storage

If you are ready for shopping cart programming you should already know about sessions and cookies and how to properly use them.

You seriously need to take more training or tutorials before you proceed.

04 Nov
1 week ago

jlrdw left a reply on How To Run Controller Only From Intern

It looks as though you have skipped authentication and authorization in the documentation.

Try that first. And yes it is a learning curve involved.

03 Nov
1 week ago

jlrdw left a reply on Make A Parameter In Route Optional For Controller

Optional route parameter have been covered in great detail.

jlrdw left a reply on I'm Having Issue In Javascript !

Question mark ?