jlrdw

Experience

199,820

224 Best Reply Awards

  • Member Since 2 Years Ago
  • 78 Lessons Completed
  • 0 Favorites

22nd November, 2017

jlrdw left a reply on Laravel Session Data - Encrypted? (any Value To Attacker If They Had It?) • 2 days ago

Think, is the file with database password encrypted? No, sessions don't need encryption neither. Proper setup is what's important period.

jlrdw left a reply on Laravel Session Data - Encrypted? (any Value To Attacker If They Had It?) • 2 days ago

If main laravel is out of public someone can't see the session data. If they can then it means the server itself is somehow hacked.

19th November, 2017

18th November, 2017

jlrdw left a reply on LeftJoin In Eloquent? • 6 days ago

QB

17th November, 2017

jlrdw left a reply on Reading From One Database And Writing To Other • 1 week ago

You can have more than one DB connection it's in docs. Config in app/config/database.php.

15th November, 2017

jlrdw left a reply on Foo() And Bar() In Code Examples • 1 week ago

I agree with you that Foo Bar thing confuses the heck out of me where as a real example make sense.

13th November, 2017

jlrdw left a reply on It Would Be Nice If There Was A Link To Download Workout Files Mentioned In The Video From Github • 1 week ago

Many have that like https://laracasts.com/series/php-for-beginners

at ast course he has

So that brings this series to a close! Review the completed source code on GitHub.

That takes you to https://github.com/laracasts/The-PHP-Practitioner-Full-Source-Code

12th November, 2017

jlrdw left a reply on Laravel On Shared Hosting • 1 week ago

If you search this forum I myself and others have given links to how to properly set up in shared hosting. In fact I was kind of ticked off at one person who would not listen and I actually downloaded got everything working and got version 5.5 setup and completely working in shared hosting in just one evening with zero problems.

8th November, 2017

jlrdw left a reply on Foreach Loop In HTML Form Builder Form • 2 weeks ago

Yes encapsulate the answer.

3rd November, 2017

jlrdw left a reply on Paginate Method Append Skip Empty Params • 3 weeks ago

When appending querystring you have to pass everything. If blank, pass blank in the appends array.

1st November, 2017

jlrdw left a reply on `.` Being Added To My Decimals. • 3 weeks ago

Take off the single quote from radians.

31st October, 2017

jlrdw left a reply on Is It Possible To Tell Laravel To Lowercase Or Trim All Inputs By Default? • 3 weeks ago

@Boubou if you take the time to learn php as well, you would know that. That is a php function built in, not a laravel thing. Laravel is just a php framework. http://php.net/manual/en/filter.filters.sanitize.php

30th October, 2017

jlrdw left a reply on No Application Encryption Key Specified Random Errors • 3 weeks ago

Have you tried to copy and paste in a good key?

jlrdw left a reply on CallStatic • 3 weeks ago

@ejdelmonico thanks, I admit some of the php manual examples are hard to follow, thankfully for us Taylor knew what to do. I just thought the (...) was only a new replacement for my first example above. Know I see.

jlrdw left a reply on Website Not Accepting My Credit Card • 3 weeks ago

No there a place at bottom of that page for support, try there.

jlrdw left a reply on Multiple Bank Account In A Single Website • 3 weeks ago

I would not mess with such things, use a high rated service for that.

jlrdw started a new conversation CallStatic • 3 weeks ago

I use callStatic at times and for a return I use

return call_user_func_array(array($instance, $method), $args);

However I see that Taylor uses

return $instance->$method(...$args);

I have tried that also and it works as a replacement for the first. I have tried to find information on (...$args) in the php manual. I for some reason can't locate the second return used in place of first return statement.

Can someone who may know where that reference is give me a link, thanks.

Also when used like

$instance->$method    //with arrow ->

is it expecting a non static method or does that matter?

jlrdw left a reply on Switching From Development To Production Questions • 3 weeks ago

Also make sure production has correct folder structure, see this

http://novate.co.uk/deploy-laravel-5-on-shared-hosting-from-heart-internet/ as a guide and see this screen shot of how a folder structure should be.

https://imgur.com/Oo6k4Fp

29th October, 2017

jlrdw left a reply on What Is The Difference Between Validator::make And $this->validate(request() - Laravel 5.5 • 3 weeks ago

Well right in docs taylor says

"Facades provide a "static" interface to classes that are available in the application's service container. Laravel ships with many facades which provide access to almost all of Laravel's features. Laravel facades serve as "static proxies" to underlying classes in the service container, providing the benefit of a terse, expressive syntax while maintaining more testability and flexibility than traditional static methods.

All of Laravel's facades are defined in the Illuminate\Support\Facades namespace. So, we can easily access a facade like so:"

I myself like the "static" looking calls, they just look better.

I many times in a custom framework use __callStatic

Like difference in

$request->input('whatever')

and

Request::input('whatever');

You can use either, just different use statement at top of controller.

But in the inner workings there is no difference.

jlrdw left a reply on Limit The Pagination Link Amount • 3 weeks ago

Just write a custom presenter like:

@if ($paginator->hasPages())
    <ul class="pagination pagination">
        {{-- Previous Page Link --}}
        @if ($paginator->onFirstPage())
            <li class="disabled"><span>&laquo;</span></li>
        @else
            <li><a href="{{ $paginator->previousPageUrl() }}" rel="prev">&laquo;</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">&raquo;</a></li>
        @else
            <li class="disabled"><span>&raquo;</span></li>
        @endif
    </ul>
@endif

As an example.

jlrdw left a reply on Quick Question On Pagination With Laravel 5.5 • 3 weeks ago

@Boubou see this https://laracasts.com/discuss/channels/guides/length-aware-paginator

Skip and take and a pre count make the Lengthaware paginator very efficient.

Eager load just means load when needed, i.e., You have a company and want to list their accounts receivables.

That orm breaks down very fast if in a nested foreach the inner foreach has thousands of results. But it is fine for small results.

Boss wants to view report, I would have a paginator kind of in a paginator. I.e., where inner foreach has a whole lot of results.

This is something you will never see in a video, I promise. WHY -- Enterprise don't use active record.

27th October, 2017

jlrdw left a reply on Pi (π) Button • 4 weeks ago

You know you can see what it is in browser inspector tab, right?

A pi button in a div is all. Probably to see if people by now know about inspector tab in browser.

26th October, 2017

jlrdw left a reply on Can I Disable Caching For A Specific Blade View? • 4 weeks ago

Have you tried to generate the random hexcode from controller and pass as a variable to view? Just a thought.

But read this article: https://stackoverflow.com/questions/25813251/how-do-i-disable-laravel-view-cache

jlrdw left a reply on Two ManyToMany Linked Together? • 4 weeks ago

Here is a good read: http://laravel.io/forum/05-12-2015-has-many-through-relationship-depth

You are better to reduce relations, not increase.

jlrdw left a reply on Accessing Homestead Projects In A Windows Environment • 4 weeks ago

You could every now and then upload to a host and see, or I use browserstack to test on severl browsers. Also there is chrome developer tools.

jlrdw left a reply on Sessions Being Overridden • 4 weeks ago

And you have made no changes at all anywhere? Something on the host had to change, contact tech support and see if the way sessions are handled on shared hosting has changed.

jlrdw left a reply on Sessions Being Overridden • 4 weeks ago

Go the the docs for 4.2 it will tell you. https://laravel.com/docs/4.2#server-requirements

jlrdw left a reply on Mix PHP And Javascript In Laravel • 4 weeks ago

You will probably also need something like http://php.net/manual/en/imagick.getimageorientation.php to properly rotate the image. There are packages that help with this.

jlrdw left a reply on Sessions Being Overridden • 4 weeks ago

Go to that cpanel and make sure they didn't update to a php ver higher tha 4.2 supports, usually you can select a version. Also make sure the required extensions are still enabled.

jlrdw left a reply on How Can I Solve This Error:422 (Unprocessable Entity) • 4 weeks ago

Also there was a good example of FormData right here on this very forum: https://laracasts.com/discuss/channels/requests/upload-image-with-ajax

25th October, 2017

jlrdw left a reply on Pagination Unavailable When Filter Function Is Used • 4 weeks ago

Have you thought about a custom length aware paginatior. https://laracasts.com/discuss/channels/guides/length-aware-paginator

jlrdw left a reply on Constraining Main Laravel Query By Its Eager-loaded Relationship • 4 weeks ago

@tykus your fancy terms amaze me. Shows how smart you are. Very impressive.

jlrdw left a reply on Best Caching Solution? • 4 weeks ago

You could just store List x recent games, list x most viewed games, list x top rated games in a table, and display that. Just a thought.

jlrdw left a reply on User Automatically Logged Out After A Few Seconds Laravel 5.4 • 4 weeks ago

Check the settings for session.

jlrdw left a reply on Access Public Folder Of Laravel Project • 4 weeks ago

Same domain?

jlrdw left a reply on Constraining Main Laravel Query By Its Eager-loaded Relationship • 4 weeks ago

What is funny in a way is I came from enterprise java (medium size trucking co) writing and maintaining logistics software including accounts receivable and accounts payable. I never even heard the word encapsulate until seeing it on some php forums. Somehow I made good money programming servlets, jsp, and ejb's without words like that.

jlrdw left a reply on Buy Laracast Account • 4 weeks ago

There is separate help for laracast.

jlrdw left a reply on Can't Download Videos From France • 4 weeks ago

Sounds like your internet is burping at times, I had a similar problem with dsl, now I have cable modem. That provider may only burp once or twice a year.

  • burp = loose connection for fraction of second.

jlrdw left a reply on Access Public Folder Of Laravel Project • 4 weeks ago

Have correct permissions set and just access it, I don't understand the question.

jlrdw left a reply on Call A Method Inside The Same Method! • 4 weeks ago

In answer to original question:

Is this possible ?

<?php

namespace App\Http\Controllers;

class ThisClass extends Controller
{
    public function ThisFunc($thisParam)
    {
        if($something == true){
            ThisFunc(true);
        }
    }
}

?>

Is null

jlrdw left a reply on Pagination • 4 weeks ago

You have given so much information here that I am sure you will get a ton of help. I have no trouble with my pagination links.

24th October, 2017

jlrdw left a reply on Why Is Laravel Ending Support For Older Versions? • 1 month ago

Well think about this.

  • PHP developers worked hard to maintain backwards compatibility.
  • Java technology is several years backwards compatible.
  • Asp.net technology is several years backwards compatible.
  • ASP same

But yet php frameworks have to update every few months for some reason, not just laravel. So it's not the language, it's the framework developers.

Why is Laravel ending support for older versions?

Really isn't the question. Let's say you had a php application written in an older version, not too old. Then it would still work as is in php 7. It's because the frameworks try to put in so many specialized things for newbees that they don't know how to code the stuff for themselves. Like Auth. Mail, CSRF, etc.

So the specialized packages and things like that become outdated. The language itself would probably be good still, meaning php, and even basic javascript and css.

In fact I have one custom php framework several years old that just needed two tweaks in the router and a small tweak in the error handling to make it php 7.1 compatible.

That's not to say a older laravel application isn't good for a while yet.

In the long run you would be better off doing what large enterprise does. That is start working on your own custom framework. Most large enterprise have highly customized software they maintain in-house.

Or just don't worry about it and plan on updates more often, which I do not like and I don't do, with the exception of a security issue.

23rd October, 2017

jlrdw left a reply on The Visual Studio Code Thread • 1 month ago

I still think netbeans is better.

22nd October, 2017

jlrdw left a reply on Received A Coupon Code To Comeback Promising Me 50% Off, Got Charged $86.00 • 1 month ago

Bummer dude. But just let Jeffrey know.

jlrdw left a reply on Installing Laravel Outside Of The Httpdocs Folder • 1 month ago

I think you are confusing calling assets vs a normal link to a route. Try

<a href="test">test</a>

I don't use blade, sorry. In my 5.5 I don't use a forward slash. Make sure test isn't a reserved word.

jlrdw left a reply on Using Normal MySQL Instead Of The Query Builder In Laravel • 1 month ago

You can, but may require small tweaks. I converted once a java jsp/servlet application to php. If you know your code, small tweaking isn't that hard.

jlrdw left a reply on Trying To Understand ViaRequest • 1 month ago

Also there is https://laravel.com/api/5.5/ But, watch out, in the docs Taylor also has references to other api docs as well. Also look at how the code works in the vendor folder, but never modify anything in there.

jlrdw left a reply on How To Get Length More Than 191 • 1 month ago

Not sure exactly what you are doing but look over this: https://www.w3schools.com/php/func_string_strlen.asp

Edit Your Profile
Update

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