jlrdw

jlrdw

Member Since 3 Years Ago

Experience Points 297,500
Experience Level 50

0 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 96
Lessons
Completed
Best Reply Awards 299
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.

19 Mar
1 day ago

jlrdw left a reply on Auth Middleware On A Button

clicking the button redirects to the sign in page

Middleware isn't involved yet. It will or should kick in after login, but before certain pages are allowed access.

jlrdw left a reply on Multiple File Upload

Also

site:laracasts.com multiple file upload progress bar

jlrdw left a reply on AJAX Doesn't Pass Data Even If Status Is 200

Perhaps try changing this to ajax passing the params:

url: `/subsidiary/${brcode}/${slc}/${slt}/`,

And you can just post without json, json is bigger on sending a response back, but your choice:

data:JSON.stringify(payload),  //  Just post without using json.

jlrdw left a reply on Can Store File But Can't Destroy It

This is NOT a laravel example, but you can see after a "record"is deleted, I find the image and delete.

Convert to laravel request, just example here:

    function delete()
    {
        if ($this->chklog() == 'notlogged') {
            Url::redirect('admin');
        }
        $id = $_GET['id'];
        $this->Dog->delete($id);
        $dfile = "NO File";
        if (!empty($_GET['tmppic'])) {
            $tmppic = $_GET['tmppic'];
            $target_path = ROOT . 'upload/imgdogs/';
            $tmpfile = $target_path . $tmppic;

            if (is_file($tmpfile)) {
                if (!unlink($tmpfile)) {
                    $dfile = "Error deleting file";
                } else {
                    $dfile = "File deleted";
                }
            }
        }
        $data["msg"] = $dfile;
        $path = 'dog/imgdel';
        View::render($path, $data);
       
    }

jlrdw left a reply on Delete Please.

@MARTINBEAN - You got all that from Delete please..

jlrdw left a reply on Laravel Form: Use More Submit Buttons In Form

if(!empty(Request::input('your submit button name')){....
// or
// laravel has a Request::has method also

jlrdw left a reply on Dynamic Connections

This has actually been discussed in depth here, with great solutions.

Try in google like:

site:laracasts.com your search term

As Jeffrey's search isn't as powerful as Google's.

jlrdw left a reply on Next Issue Fonts And Images Arent Visible

Glad you got it, that font thing was to to me, I usually just use available fonts.

jlrdw left a reply on I Want Query Laravel Model Please

Jeffrey even does this in his free video series he shows how to use eloquent.

Instead of a cut and paste solution take a little time and learn some stuff.

jlrdw left a reply on Query Returning Wrong Results

Okay I've seen where you have shown some regular queries and got the correct results.

If that is the case why are you messing around with active record just write regular queries.

You do realize that eloquent converts to normal SQL at runtime anyway.

jlrdw left a reply on How Much Does It Cost To Hire Someone On Snapy Or Cronix Level?

Why don't you just watch the videos on validation and the other topics you need.

I think it's currently only $15 a month.

And come to the realization and it takes time to learn that stuff.

No one here learns all stuff in one day some people have been at it several years and are still learning.

Just wondering.

18 Mar
2 days ago

jlrdw left a reply on Query Through JSON File

Look at this example: https://stackoverflow.com/questions/8177993/how-can-i-get-value-through-json-array-like-query

Once you, with trial and error, figure the correct loop to loop over the data:

  • In the loop if Rugby is there, then
  • put that whole row into a new temp array
  • once fisished the looping of first array
  • send second temp array to view
  • now foreach using blade the array containing your Rugby

OR

As looping original json array, write to a temp table then query the table, then sent results to view.

And or

Write a custom class that does this stuff.

Sorry no cut and paste code, but really a lot of what you need is just some trial and error, tweaks to get correct. Some leg work in other words.

jlrdw left a reply on Next Issue Fonts And Images Arent Visible

@M3THODM4N - I don't usually import custom fonts but here's another article that might help

https://stackoverflow.com/questions/14676613/how-to-import-google-web-font-in-css-file

Read through those answers

jlrdw left a reply on Next Issue Fonts And Images Arent Visible

Try loading regular without the helper

jlrdw left a reply on Next Issue Fonts And Images Arent Visible

Have you tried url("/testprojekt/fonts/tomatoes.ttf");

jlrdw left a reply on How Can I Rename Column In Laravel Using Migration?

Isn't doctrine/dbal already installed.

jlrdw left a reply on How To Manage Files In Database

Like an image then, just store the name.

jlrdw left a reply on How To Manage Files In Database

No you do not need to store a pdf in the database, either generate on the fly, or use file storage. I have never heard of such a thing.

jlrdw left a reply on Come On Laravel There Has To Be A Way To Do This The Right Way...

@CRONIX - Couldn't you do a PhpFiddle on it? Couldn't HMS.

jlrdw left a reply on Retrieve Multiple Data Using Ajax Data From Controller

Jut me, instead of doing all in one go, I would probably have another "button" to retrieve that in an ajax get request.

jlrdw left a reply on Lumen Session Not Persisting On Every Request

If this is just now a requirement, I'd start migrating all to laravel, you'll be happy later about it.

jlrdw left a reply on Lumen Session Not Persisting On Every Request

It shouldn't take too long to switch to laravel, lumen has and uses same components.

How have you dealt with session prior in lumen.

jlrdw left a reply on Should I Define Mysql Relations When Using Alequent

should i define mysql relations when using alequent

Yes or no.

If you do migrations for an app - yes.

If you do not, maybe just a small app - no

So either, or, it's up to you.

jlrdw left a reply on Lumen Session Not Persisting On Every Request

I am not sure exactly how you are using what. But you may just want to use Laravel for your needs.

I am not 100% sure, but I think most people use lumen for API's and therefore use token based Auth.

jlrdw left a reply on Show Related Div Based On Selected Option

In this example I use a click event to popup the edit div:

https://drive.google.com/file/d/0B1_PFw--3o74TC16eXRBYXZBNFk/view

For the select option you could probably look into .change()

https://api.jquery.com/change/

17 Mar
3 days ago

jlrdw left a reply on I Am New In Laravel, Need Your Advice

Laravel is going to be more than two week learning curve.

Proper authorization alone is a learning curve.

If you're going to use laravel take the time and learn it correctly

However with that said if you do not have the time to learn all the eloquent relationships, you could use Query Builder or the DB facade and write regular queries for now.

Just a thought oh, and by the way laravel is very flexible.

jlrdw left a reply on About File

i want to store thier result information

Check HIPAA also on this. When I worked for the State of Texas, certain things had to be encrypted, not just a "text" file.

jlrdw left a reply on Why Blade Template Always Echo Variables :(

Why Blade Template Always Echo Variables

It don't, for php logic you use the corect blade tags:

Example:

@php echo str_replace('/?', '?', $dogs->appends($qs)->render('custompager')) @endphp

jlrdw left a reply on Updating Multiple Records From The Front-end Using Laravel 5.8

Just wondering, why are you having to update several at one time, couldn't you update one at a time.

Normally a mass update isn't needed in the view, if you were for example updating a price of all DVD movies by 2 percent, you could do that with a query that updates all at once on the back end.

So it's hard to see what you are after.

jlrdw left a reply on Laravel - Placing Only Folder Public In Web Root

You probably need to read this https://laravel.com/docs/5.8/filesystem#configuration

You probably need to set up a storage:link

Normally on just a simple site, I would just have an image folder under public. But node requires a little higher config.

Is that on a shared host, or Digital Ocean.

jlrdw left a reply on Is This The Correct Way Of Rewriting This Query In Eloquant?

See my las answer here https://laracasts.com/discuss/channels/laravel/how-to-find-only-last-row-from-second-table-along-with-its-first-table-row?page=1

More than one way, one is starting with select, another starts with query.

Bottom line, it can take some trial and error to build up eloquent queries.

16 Mar
4 days ago

jlrdw left a reply on PDOException In Webapp, But Not Tinker

Have you checked that:

extension=pdo_mysql.so

is enabled, not commented out.

jlrdw left a reply on Why Does Authorize() Add Blocking For Guests?

In RBAC you will have to let the system know what guests are allowed to do.

jlrdw left a reply on Laravel - Placing Only Folder Public In Web Root

Glad you got it working.

jlrdw left a reply on PDOException In Webapp, But Not Tinker

Are you able to connect and run a query in phpmyadmin

jlrdw left a reply on Grabbing Parameter From URL

You have a token in a url.

jlrdw left a reply on Laravel - Placing Only Folder Public In Web Root

See my 5th reply here

https://laracasts.com/discuss/channels/laravel/next-issue-fonts-and-images-arent-visible

The guide in the link works. I clear all cache and delete temp views before uploading.

15 Mar
5 days ago

jlrdw left a reply on Passing Data From View To View

@GRUBI - Could you show as answered so it would help others.

jlrdw left a reply on Converting Array Of Address Parts To A String

@ORION - Some parts do not have a comma.

address1 address2, city, state postal_code

jlrdw left a reply on Converting Array Of Address Parts To A String

Okay but some parts don't have a comma.

jlrdw left a reply on Converting Array Of Address Parts To A String

Could you just build the string say the array was $g:

$address = $g[0] . " " . $g[1] . "," . " " .  etc etc

Since format is the same. Just a thought.

jlrdw left a reply on Why Using : Let Self = This?

Assigning the current context of this to get something else.

Say this was currently 5

You want to get 5 squared, but leave the original 5 alone.

So square self, not this.

It's not a vue thing, it's JS.

jlrdw left a reply on Session Problem!

Could be the way you have things set up, go to google and punch in:

site:laracasts.com multi tenant

jlrdw left a reply on How To Restrict/limit Resource Edit Without An Login System?

Adding the login system is not an option atm.

Make it an option or walk away.

Proper RBAC is the key to authentication and security and authorizing actions.

jlrdw left a reply on Session Problem!

@TBASOFT@GMAIL.COM - I read article, have you tried to scale up, (proper load balance), and tried another driver like Redis or Memcache.

jlrdw left a reply on Session Problem!

Perhaps show image here, Not external, of folder structure.