jlrdw

Experience

148,070

162 Best Reply Awards

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

25th May, 2017

jlrdw left a reply on Why Does WhereHas With Where Break The Query? • 5 hours ago

Seems as though the examples jump right to whereHas

// Retrieve all posts with at least one comment containing words like foo%
$posts = Post::whereHas('comments', function ($query) {
    $query->where('content', 'like', 'foo%');
})->get();

You have $order = Order::completed() prior to using whereHas. Just my observation.

jlrdw left a reply on How To Manage Enum In Laravel • 5 hours ago

I would strongly consider staying away from enum. I have seen where so many folks have had trouble with it. I would consider checkboxes (tinyint a 1 or 0) and a combination of possible radio buttons. Just my 2 cents.

jlrdw left a reply on Create Complex Query With Eloquent • 5 hours ago

Could you study some of these https://laracasts.com/discuss?q=complex+query so someone won't have to write the code for you. Any query has to be "thought out, and "worked up".

jlrdw left a reply on How To Convert A Collection Of Carbon Objects To Usable Format? • 9 hours ago

foreach through using a key:value. Like any result.

jlrdw left a reply on Advice On Best Way To Store In Database • 9 hours ago

See what vimeo has to offer.

jlrdw left a reply on Godaddy Hosting Howto Setup Public_asset • 9 hours ago

In the past 2 weeks there have been at least 4 answers here on setting up on shared hosting, one in fact is close to this post, please search the forum. 3 of the 4 I answered myself.

jlrdw left a reply on How To Perform Sql Query With Eloquent? • 9 hours ago

Have you thought about a javascript geometry library such as https://github.com/mborne/jquery-geometry-editor but there are others, search around.

And if you need to store a result then use laravel for backend.

jlrdw left a reply on Laravel 5.4 Not Working On Linux Shared Hosting • 9 hours ago

That being the case, DO NOT repeat DO NOT use the .env file, hard code your settings in the various config files. Otherwise the env file will be accessable to anyone. And least then you are more secure.

jlrdw left a reply on Laravel 5.4 Not Working On Linux Shared Hosting • 14 hours ago

Go ahead and install it incorrectly and have major security issues or install it correctly like http://novate.co.uk/deploy-laravel-5-on-shared-hosting-from-heart-internet/

I have one on GoDaddy now 5.1 version and it works like a champ and it's install securly and correctly.

And seriously if you do a search you will see this question has been answered at least 250 times or more.

24th May, 2017

jlrdw left a reply on Completed Series Bug! • 1 day ago

Good catch, I would have never noticed that.

jlrdw left a reply on How To Use Laravel And WordPress On The Same Domain • 1 day ago

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

I have a tjhsup folder that sits even with public_html (NOT UNDER) and a folder called tjhs that is under public_html like

public_html\tjhs

and then just resolve paths correctly using the link above as a guide. Not hard at all, just get paths resolved correctly.

jlrdw left a reply on How To Decrypt Laravel Password On Java • 1 day ago

Saaay Whaaaat

23rd May, 2017

jlrdw left a reply on How To Use Laravel And WordPress On The Same Domain • 2 days ago

Different paths, I have a laravel 5.1 and a small cakephp app on same domain.

jlrdw left a reply on Dynamic Drop Down Menu (how?) • 2 days ago

If you search this forum, many discussions on "laravel collective" dropdowns.

22nd May, 2017

jlrdw left a reply on Envoyer In Hostgator Shared Server • 3 days ago

I don't know about Envoyer, but however you set it up do it securly and right, see these two guides:

https://laravel-news.com/subfolder-install (laravel news)

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

jlrdw left a reply on Query To Retrieve The Latest Entry In A History Table Per Student In Laravel 5.2 • 3 days ago

That is extremely difficult to read, review this and edit your post https://laracasts.com/discuss/channels/general-discussion/guidelines-for-posting-on-laracastscom

The part about how to post code.

But in your case order by desc should work.

jlrdw left a reply on Laravel 5.4 + JScroll.js Not Working • 3 days ago

Are you sure script is loading? When that page loads in browser and you right click and view source, can you see the call to jquery, and if you click it does the code load?

21st May, 2017

jlrdw left a reply on Prevent Tnt Search Converting Space To ' AND ' • 4 days ago

A google search adds a "+"

https://www.google.com/search?q=iphone+5s+plus&ie=utf-8&oe=utf-8

tnt seems to use "and", short of modifying the code, you may have to live with that, or try another search engine. Have you tried elastic search?

jlrdw left a reply on Odd Query Problem • 4 days ago

@jimmck has delivered a most brilliant, wonderful, fresh answer. I'd go with that.

jlrdw left a reply on Make::view Not Passing The Correct User • 4 days ago

Check your code, somewhere you are over writing a value it sounds like.

jlrdw left a reply on Odd Query Problem • 4 days ago

What is dctrn_result and did you try with a final semicolon? Is it supposed to be as dctrn_result or ), dctrn_result

jlrdw left a reply on Make::view Not Passing The Correct User • 4 days ago

Seems you are not passing any parameters in the route, see https://laravel.com/docs/5.4/routing#route-parameters

jlrdw left a reply on MySQL Returning Incorrect Values. • 4 days ago

@Snapey I remembered the discussion, but since the title didn't have uuid in it I had a heck of a time locating it. Bookmarked now.

jlrdw left a reply on Tokenmismatchexception On Every 2nd Page • 4 days ago

Are you sure you are passing it to the final page. Also the one stored in session may change between request, so treat each request as a brand new request.

jlrdw left a reply on Undefined Variable: Posts • 4 days ago

Look at this example from docs

<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class UserController extends Controller
{
    /**
     * Store a new user.
     *
     * @param  Request  $request
     * @return Response
     */
    public function store(Request $request)
    {
        $name = $request->input('name');

        //
    }
}

Look inside the parenthesis.

jlrdw left a reply on Advice For Laravel Beginner • 4 days ago

Also don't try to learn laravel in one day, take quality time and learn it correctly.

jlrdw left a reply on How To Export Data To Excel Laravel • 4 days ago

Actually there have been discussions on this please browse these https://laracasts.com/discuss?q=export+to+excel

jlrdw left a reply on Undefined Variable: Posts • 4 days ago

You are attempting to pass as a prameter and attempting to retrieve in request object.

You need to review the docs on proper use of retrieving request input https://laravel.com/docs/5.4/requests

jlrdw left a reply on Laravel Helper Functions E.g: GetClientOriginalName() • 4 days ago

You have to read the docs, Taylor adds links like

Other File Methods

There are a variety of other methods available on UploadedFile instances. Check out the API documentation for the class for more information regarding these methods.

Here API is a link to http://api.symfony.com/3.0/Symfony/Component/HttpFoundation/File/UploadedFile.html

jlrdw left a reply on Laravel Helper Functions E.g: GetClientOriginalName() • 4 days ago

It's right in the api see my updated answer

jlrdw left a reply on Laravel Helper Functions E.g: GetClientOriginalName() • 4 days ago

Look through the API

jlrdw left a reply on MySQL Returning Incorrect Values. • 4 days ago

I am trying to find a previous post that had same problem, no luck yet.

jlrdw left a reply on MySQL Returning Incorrect Values. • 4 days ago

It's returning the 1 in 123

20th May, 2017

jlrdw left a reply on DB Raw Queries :: Using MySQL "SET" Statement For Variable • 5 days ago

The docs has excellant examples and there are laracast videos, many are free.

jlrdw left a reply on How Can I Build This Package? • 5 days ago

Doesn't guzzle work with the external api's.

jlrdw left a reply on Uploading, Downloading, Reading, Delete Of Files • 5 days ago

You need to dig into https://laravel.com/docs/5.4/requests#files

and

https://laravel.com/docs/5.4/filesystem and the docs in general.

And there are videos also, here, youtube, etc.

If you follow Taylor's examples and Jeffrey's videos you will be on the right track.

19th May, 2017

jlrdw left a reply on Groupby Min/max, Then Filter Grouped Results • 6 days ago

Have you tried having instead of where?

jlrdw left a reply on Repository Pattern Using Laravel 5.4 • 6 days ago

Also right here there are many past discussions https://laracasts.com/discuss?q=Repository+pattern

jlrdw left a reply on Groupby Min/max, Then Filter Grouped Results • 6 days ago

You have a

->orderBy('type')

before the when statement.

You may need two possible whens or work in an if statement, since one

->orderBy('type')

would be used on the "not" when, but it would be used after "when" when "when is true. Hard to explain, but hopefully you see waht I mean.

jlrdw left a reply on Groupby Min/max, Then Filter Grouped Results • 6 days ago

Does ->orderBy('type') need to be moved?

jlrdw left a reply on Groupby Min/max, Then Filter Grouped Results • 6 days ago

Have you looked ar the "when" keyword in the docs. Or make a query scope.

jlrdw left a reply on How I Can Upload An Image With Post • 6 days ago

Please search forum, uploading a file / image has been covered many many times. Honest, not trying to avoid an answer.

Edit Your Profile
Update

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