jlrdw

Experience

246,050

244 Best Reply Awards

  • Member Since 3 Years Ago
  • 79 Lessons Completed
  • 0 Favorites

25th September, 2018

jlrdw left a reply on Route PUT Returns 500 (internal Server Error) • 2 hours ago

Take a look at https://laracasts.com/discuss/channels/guides/jquery-ajax-post-example

Just a simple guide I did but put also works.

I don't believe you're getting the token correctly.

jlrdw left a reply on What About A Laravel 5.7 From Scratch Series? • 8 hours ago

If you do not like the training Jeffrey offers seek the training else where.

No matter what you say, laravel has not changed that much since 5.4, nothing reading a change log would not catch you up on. But no, I guess you do not want to read a change log (upgrade guide) or a what's new.

But of course that is completely you choice.

Weird, others here can jump to a new version without a complete series.

I guess I am just a quick study like "James Bond".

24th September, 2018

jlrdw left a reply on Difference Between !== & != • 1 day ago

If one of us gave answer that helped, can you mark as answered.

jlrdw left a reply on Need Laravel Expert • 1 day ago

Someone had to be making backups, who is or was in charge of the site. Whoever has the most current backed up data, get with them.

jlrdw left a reply on Difference Between !== & != • 1 day ago

Ah, then above reference explains. Remember php loose typed, c, c++, c# not forgiving like php. Funny ain't it, php is written in C.

jlrdw left a reply on I Search Datepicker Compatible With Bootstrap 4.1/blade • 1 day ago

I am behind, but one of my bigger apps required.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

I will have to play catch up, thanks.

jlrdw left a reply on I Search Datepicker Compatible With Bootstrap 4.1/blade • 1 day ago

have you considered the native html5 datepicker?

Say what, I did not know about that, googling right now.

jlrdw left a reply on Difference Between !== & != • 1 day ago

I have never seen

!===

Just

<>  // or  !=

Curious, where did you get that in a reference.

From php manual

$a != $b Not equal TRUE if $a is not equal to $b after type juggling. $a <> $b Not equal TRUE if $a is not equal to $b after type juggling. $a !== $b Not identical TRUE if $a is not equal to $b, or they are not of the same type.

jlrdw left a reply on Using Laravel Nova As Frontend • 1 day ago

Heard it all now, It is a frontend for Admins. If you make it a frontend for normal users, aren't you defeating the purpose.

But I guess you can use it any way you want.

jlrdw left a reply on Crud Operation In Laravel • 1 day ago

@Hunain choose now if you want to be a programmer.

If yes, just write the code with keyboard, artisan will generate basic controller methods, but you actually have to CODE the stuff.

Or if not, forget laravel and just use a program like phprunner. Look it up.

jlrdw left a reply on Ajax Form Vs Regular Form? • 2 days ago

That was example you can do big form with Ajax also that doesn't matter.

23rd September, 2018

jlrdw left a reply on Ajax Form Vs Regular Form? • 2 days ago

If you are just looking at making an app mobile friendly, that's where media queries come in. But an API is different.

Either way, I use Browserstack to see real time how application looks. And don't forget the Google mobile friendly checker.

jlrdw left a reply on Ajax Form Vs Regular Form? • 2 days ago

Say you have a ledger (checkbook type) application. Many users like in place edit for things like that. That's where ajax is good.

Hard core business forms (entering loads at trucking company) not so much.

22nd September, 2018

jlrdw left a reply on Getting Involved • 3 days ago

@Snapey I agree, once Jeffrey reminded me we were all new to this stuff at one time, which is one reason I have tried to be a lot nicer.

But I remember that .env thing, OP was warned at page 2, 12 to 15 pages later he had not fixed.

I think you were even mad on that one.

Hey I was once an instructor in the Air Force for a while. In training classes, not drill instructor.

jlrdw left a reply on Getting Involved • 3 days ago

although I think the agolia search Jeffrey switched to is pretty useless compared to how it used to be

I usually have to google also. Jeffreries is very limited.

But really, when someone ask about, as example upload to shared host. And a very detailed answer is given, with links, images, just all sorts of correct answers.

And two days later the same exact question, come on now folks.

But I agree if Jeffrey had a better search it would be easier to find things.

Perhaps eventually a most asked by topic would be nice. Anything.

jlrdw left a reply on Equest->authorize And Gate • 3 days ago

Gate is the definition of: can a user as example edit a certain record.

The request->authorize is a controller call (calling the gate guard) seeing if the current user is allowed.

request->authorize: Is mainly calling the policies and gates and checking is it ok for this user to edit, as example, yes user is a bookkeeper and can edit a transaction.

Or

No, this is just the janitor logged it, he or she cannot edit the General Ledger.

gate is a specific definition that is checked, okay you are logged in, fine, but are you allowed here. Meaning a certain page or area.

It all boils down to role the user has.

I'd strongly suggest working the examples and download any github example Jeffrey has on this. It is a little tricky, and requires practice. This is not a one evening lesson, could take days or weeks.

jlrdw left a reply on What About A Laravel 5.7 From Scratch Series? • 3 days ago

It just sounds to me like someone has the I want I want and I want it now syndrome.

jlrdw left a reply on Refering To Public Path • 3 days ago

You don't even have to use helper.

something Simple make a big impact for the new folks to laravel.

I agree but it still just an image SRC you could do it the same way you did in PHP prior to going to laravel. Even your basic HTML studies it's the same way. Taylor just threw in a helper is all, like yii and cakephp they have helpers.

Echo out what the helper does and you will see it's as though you typed it all out anyway.

jlrdw left a reply on File Uploads In Nova • 4 days ago

Don't, do that in laravel code. Nova becomes part of laravel.

"require": {
    "php": "^7.1.3",
    "fideloper/proxy": "^4.0",
    "laravel/framework": "5.7.*",
    "laravel/nova": "*"

https://nova.laravel.com/docs/1.0/installation.html#installing-nova

jlrdw left a reply on File Uploads In Nova • 4 days ago

21st September, 2018

jlrdw left a reply on Refering To Public Path • 4 days ago

I have never seen so many folks having trouble simply displaying an image.

Shared or dev folder structure:

https://imgur.com/Oo6k4Fp

DO may be different, but they actually haves tutorials.

And go to the docs and find the asset helper.

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

I am not making it up, It is really that easy.

I used php echo, just convert to blade, as don't use blade.

jlrdw left a reply on Session Or How To Do This • 4 days ago

It is better to have a newly registered user actually completely login.

jlrdw left a reply on Create A Blade File In The Controller • 4 days ago

Did you forget to take some of the free basic videos and tutorials.

jlrdw left a reply on SQL Query To Eloquent • 4 days ago

@XerK eloquent is not a programming language, it is short cuts for humans, at runtime all is converted into native normal SQL PDO queries.

Eloquent is fine for normal smooth flow relations, but for more complex queries you are probably better off writing your own complex query.

Did you look at some of the links I posted.

jlrdw left a reply on Jquery Ajax Form • 4 days ago

And the code that you have attempted.

20th September, 2018

jlrdw left a reply on Pagination Of Data From A Relation • 5 days ago

is it #### galeriainfo->links()

Or #### galeriaInfo->links()

jlrdw left a reply on Does NoSql DB Like Mongo FIt Into Laravel ? • 5 days ago

I know there are some packages for mongo support with laravel but are that really fit into laravel ?

Laravel is a php framework, others have used mongo.

Maybe one of the packages would explain. Worse case, if it works it test ok.

When I programmed java, servlets, jsp, ejb years ago, I tested all on a real duplicate database and setup. Not mock test.

If for example you enter a record, hit submit, and that record successfully got entered into the database for real why would you have to fake enter it?

jlrdw left a reply on Do I Have To Learn PhP • 5 days ago

During my studies I learned to program in various languages such Java, C+ and Visual Basic.

Seems if you really programmed in java, you would not have even asked that question. Sorry not saying you didn't, just strikes me funny a java programmer asking that.

But java is vast, so many branches, like welding, many branches.

Should a good professional welder know about metals?

Answer, yes. A good welder knows also what not to weld and why.

Just a cent worth.

P.S. The worst yet is someone did not even know what a query string was, yet jumped directly into laravel. Asking questions like crazy, yet Jeffrey has free into studies, etc.

Learning only from the forum.

I am glad my Doctor went to medical school and did a proper internship.

Sorry another half cent.

jlrdw left a reply on Eloquent Find Vs Where/get • 5 days ago

eloquent find vs where/get

There's no such thing, eloquent is a shortcut, so find is a shortcut.

If you browse Builder.php in vendor, find breaks down to:

public function find($id, $columns = ['*'])
    {
        return $this->where('id', '=', $id)->first($columns);
    // more

But if you dig deeper all shortcuts resort back to normal sql pdo statements. The key is is Taylor has made many shortcuts, via active record.

He put a lot of work in this.

I have used eloquent for some things, but as the queries get real complex, it's actually better to use normal queries.

Some okay reading on it:

https://www.yiiframework.com/wiki/2541/when-to-use-active-record

https://laracasts.com/discuss/channels/eloquent/writing-all-queries-directly-vs-model-relations

https://laracasts.com/discuss/channels/laravel/sql-native-to-query-builder

https://laracasts.com/discuss/channels/laravel/coverting-ms-access-queries-to-laravel-query-builder

https://laracasts.com/discuss/channels/general-discussion/sql-injection-2

jlrdw left a reply on What About A Laravel 5.7 From Scratch Series? • 5 days ago

First what is wrong with y'all.

Second there is a series already.

Third when a new version comes out good gracious give Jeffrey a little while to record the series.

Anything else.

jlrdw left a reply on Refering To Public Path • 5 days ago

my path is http://localhost/ids/public

Jumping Jupiter, how many times has this been discussed and answered.

Use VH. Or if WAMP, set up like a host, this guide works for shared host and development (wamp).

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

and for reference

Using git and droplet: https://devmarketer.io/learn/deploy-laravel-5-app-lemp-stack-ubuntu-nginx/

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

I wish I had a dollar for every time a proper laravel install setup was discussed.

jlrdw left a reply on What Is The Problem On My Php Code!! • 5 days ago

@Cronix completely missed this one he would have loved it.

19th September, 2018

jlrdw left a reply on Simple File Saving From Local To Server • 6 days ago

What server, like DO or shared.

If shared I usually do a folder structure like this:

https://imgur.com/Oo6k4Fp

I seup up wamp and production same way, then use asset helper.

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

https://laravel.com/docs/5.7/helpers

18th September, 2018

jlrdw left a reply on Having Trouble Hosting Laravel On A Vps • 1 week ago

@aivarasp You realize DO has tutorials, right.

peel it back

Way back.

jlrdw left a reply on Composer • 1 week ago

Just wondering why OP did not go to https://getcomposer.org/doc/00-intro.md and read over the docs. At least skim docs

Skim - A quick look over.

And doesn't Jeffrey have a FREE video on composer.

But that's okay.

jlrdw left a reply on Paginating Grouped By Notifications • 1 week ago

Is the question answered correctly if so can you mark.

jlrdw left a reply on Paginating Grouped By Notifications • 1 week ago

Pagination and group by aren't a good marriage. A group by has to transverse the whole table to achieve results each time.

I'd look at a temp table, then paginate that. Also see if a pivot will work, I don't really use pivot table.

If you do not have too many results maybe you can just skip pagination.

jlrdw left a reply on Getting Data Based On Foreign Key • 1 week ago

Come on now, that is exactly what eloquent relations all about.

Go to the docs and actually work some of those examples and you will get the idea.

Not to mention Jeffrey has free introductory videos to all of the stuff, and if you can't view the videos there is free code on GitHub with many examples of relationships.

Usually hear someone has tried something and when they get stumped they show the code they have tried.

jlrdw left a reply on Should I Move My Project To Spark? • 1 week ago

Why not look at it the opposite way start a new spark and bring your code to that.

jlrdw left a reply on How To Append Query String To New Url? • 1 week ago

Realistically and just trying to be honest, by the time you are using the laravel framework you should be already well-versed in basic HTTP techniques such as get and post request and those kinds of basics.

Jeffrey has free introductory PHP courses as well. Even if you can't do the videos he has free code you can study on GitHub.

jlrdw left a reply on How To Pass An Optional Parameter To A Route? • 1 week ago

Jumping jahosafats

https://en.m.wikipedia.org/wiki/Query_string

The values are there in the request object.

Query string parameters and passing parameters in the router are two different Worlds, yet serve the same purpose.

Just handled a little different.

jlrdw left a reply on Paginating Grouped By Notifications • 1 week ago

For group by you will probably need a custom paginator.

https://laracasts.com/discuss/channels/guides/length-aware-paginator

For group by I usually put results in a derived table and then paginate it.

jlrdw left a reply on How To Pass An Optional Parameter To A Route? • 1 week ago

Yikes.

jlrdw left a reply on How To Append Query String To New Url? • 1 week ago

Is there a way to use or mimic this when pressing a form button for submission

A form is usually posted, normally not a query string there.

But if a get request, build it in the form action method.

17th September, 2018

jlrdw left a reply on Converting A A Float Representation Of A Date To Carbon Object • 1 week ago

how would I go about converting a date in float format

Do not use date in float format. Float will mess you up. Just do a search about the evil of floats.

jlrdw left a reply on Deploy On Production By Copying Files To The Remote Server? • 1 week ago

Linux is

CasE sEnsiTIvE

Be aware of that.

16th September, 2018

jlrdw left a reply on Laravel Deployment • 1 week ago

There is nothing to this stuff once you take a few weeks and learn it.

There's no definitive guide because there's different setups. The guide I gave works for shared hosting and local development if using xampp or wamp.

I'm sure a digital ocean droplet setup is different.

But that's the main two ways of setting up. The most important is having the main laravel files above htdocs.

Snapey's guide works

Edit Your Profile
Update

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