jlrdw

Experience

227,130

226 Best Reply Awards

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

21st July, 2018

jlrdw left a reply on Creating A New Account With A Soft Deleted Email • 21 minutes ago

The underscore deleted was just an example, the email with an underscore and some assigned number would also work. That way same could be used many times.

I'd still say have a username unique to each new user even if you reuse email that way later you can have underscore username.

But yes many ways to achieve.

jlrdw left a reply on Creating A New Account With A Soft Deleted Email • 2 hours ago

The underscore deleted was just an example, the email with an underscore and some assigned number would also work. That way same could be used many times.

I'd still say have a username unique to each new user even if you reuse email that way later you can have underscore username.

But yes many ways to achieve.

jlrdw left a reply on Best Design Tool For Front-end • 2 hours ago

When you know code good enough and you can write code and visualize in your mind what that screen looks like with the written code that is always the best designer, therefore the keyboard.

jlrdw left a reply on Getting Collection Data From Database Suitable For Showing In Html Table • 2 hours ago

Many times I use designer in Microsoft Access to build up a query then copy and paste and adjust accordingly for MySQL.

AT trucking company I would dump data to local o d b c

jlrdw left a reply on Creating A New Account With A Soft Deleted Email • 7 hours ago

Ah, just change old email to something like

[email protected] whatever.com_deleted

That way if you need to view the old email it's everything before the underscore deleted.

jlrdw left a reply on Creating A New Account With A Soft Deleted Email • 7 hours ago

Why or how would another user have that email I guess I'm sorry it doesn't make any sense to me.

jlrdw left a reply on How Would You Go About Browser Compatibility • 8 hours ago

Why don't you use browserstack.

jlrdw left a reply on How Can Replace Page In Laravel • 9 hours ago

This is right down @Cronix alley. He'll know the answer.

Either post page and let it reload or use Ajax. Unless there are other methods I haven't heard of.

jlrdw left a reply on Create/update Sql Records Without Form • 9 hours ago

How about more information as to what you are doing. Where is the data coming from.

jlrdw left a reply on Any “famous” Sites Built With Laravel? • 11 hours ago

Like any major retailers

Have you even studied the history of PHP?

PHP is fine for a small to a good-sized medium site and traffic.

No

  • FedEx
  • Walmart and Sam's Logistics
  • JB Hunt
  • CH Robinson
  • etc

Are not using php.

There are many many companies that use PHP I don't know if they use laravel, remember laravel is just a PHP framework very similar to CakePHP and yii2.

Taylor made laravel easy and flexible to use but you have to remember in the background making these shortcuts and things easier Taylor put many hours in the programming regular PHP code to make it all happen.

jlrdw left a reply on How To Pass AJAX Data To Laravel Controller • 11 hours ago

Been done on forum, please search, I even did a guide showing a simple example.

20th July, 2018

jlrdw left a reply on How Do I Secure My API Endpoints From Requests Outside Of My App? • 23 hours ago

How do I secure my API endpoints

Thanks, you take security serious. Others need to take security very serious.

jlrdw left a reply on Any PHP Book For Beginners Which Is Similar To "JavaScript And JQuery: Interactive Front-End Web Development" Book Format? • 23 hours ago

Here:

https://laracasts.com/skills/php

Much of that is free courses with code on Github

Also the php manual can be downloaded http://php.net/download-docs.php

jlrdw left a reply on How To Store Checkbox Values If Check Box Is In Foreach Loop (laravel) • 23 hours ago

Just convert to blade, I don't use blade myself. a lot of people use blade because of its HTMLentities built-in, me I just strip tags.

jlrdw left a reply on Getting Collection Data From Database Suitable For Showing In Html Table • 1 day ago

I came from Java, but been many years since that. I have also used Doctrine ORM for a while. Doctrine and Hibernate are similar.

But to me as a query gets a little more complex and you need to start using the:

raw expression

I halt right there and use getPdo(). Which eloquent also uses.

I did a guide and here are some references. But choice is yours, I am just sharing information:

https://laracasts.com/discuss/channels/guides/getpdo-usage

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

I never used hibernate, I did EJB's, servlets, jsp at a trucking company. Logistics software. Semi retired now, just do smaller PHP apps, most recent an accounting app, even had inline edit. No packages used. My JS code, took a while.

jlrdw left a reply on Why I Cant Send Datas To A Modal Boodstrap? • 1 day ago

The problem is the window don't shows up the data

@Cronix isn't that close enough to:

It don't work

Which I believe is your favorite question.

@RafaelRossales please review this post: https://laracasts.com/discuss/channels/general-discussion/guidelines-for-posting-on-laracastscom

And like @Cronix suggested please show the code you tried, and any errors properly formatted.

jlrdw left a reply on Getting Collection Data From Database Suitable For Showing In Html Table • 1 day ago

What do you think eloquent is? It's an active record shortcut that converts to normal SQL at runtime. It in itself is not a language like C++ is.

I use it sometimes myself for simple things but as a query gets a little more complex I use the DB facade or getPdo ().

jlrdw left a reply on Getting Collection Data From Database Suitable For Showing In Html Table • 1 day ago

Why don't you just query what you need and be done with it.

jlrdw left a reply on How To Clear The Users Browser Cache So That The Newest Vue Deploy Loads? • 1 day ago

Just watched, neat how it works. What's weird is I have changed css in the past, no mix, and the browsers will still show older cached css, but after a few clicks, i.e., say you are paginating, things auto catch up.

I will study this more in docs, the versioning (hash) still has me confused. Of course Jeffery makes this stuff look so simple.

jlrdw left a reply on How To Clear The Users Browser Cache So That The Newest Vue Deploy Loads? • 1 day ago

Good to know, usually I just write my own css, so version() will also take care of css? Or is version() just for JS?

jlrdw left a reply on How To Clear The Users Browser Cache So That The Newest Vue Deploy Loads? • 1 day ago

But still, that does not

clear the users browser cache

You cannot clear a uses browsers cache, they do that.

jlrdw left a reply on Check If Function Exists • 1 day ago

i want to check if passed file if a function "translate " was being called

was being called

debug_backtrace will tell him if that was called.

jlrdw left a reply on Check If Function Exists • 1 day ago

Well sorry I mis-understood. But the developer should know if they have a function in a file should they not.

jlrdw left a reply on Check If Function Exists • 1 day ago

You could use a debug_backtrace. A while back I had to gt the model name from a controller name, so I did:

<?php

namespace App\Helpers;

class DBS
{

    public static function __callStatic($method, $params)
    {
        $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 2);
        
        if (isset($trace[1]['class'])) {
            $class = $trace[1]['class'];
            //echo $class;
        $slh = strrpos($class, "\") + 1;
        } else {
            return null;
        }
        $model = "\App\Models\SMVC" . "\" . substr($class, $slh, -10) . "Model";
        $instance = new $model();

        return call_user_func_array(array($instance, $method), $params);
    }

}

Maybe that could be adapted. This works to see what is in the stack. In my case say a controller named AccountController was used, I needed the name

Accounts from it.

Long story, just learn about how to use debug_backtrace

jlrdw left a reply on How To Store Checkbox Values If Check Box Is In Foreach Loop (laravel) • 1 day ago

I have worked with checkboxes for years, and it seems so neat to do an array, but the array becomes a mess to deal with. I like working with individual checkboxes. Just a little more code.

Any example convert to laravel request methods.

In controller:

$adopted = (isset($_POST['adopted']) == '1' ? '1' : '0');

If adopted was not passed

The animal's checkbox wasn't checked thus a

0 is stored

And the animal is still available for adoption.

Otherwise a 1 (one) is stored and the animal has been adopted.

In a view when showing form

<input type="checkbox" name="adopted" id="adopted" value="1"<?php echo ($cat->adopted == 1 ? ' checked' : ''); ?>>

So if a 1 (one) is already stored in the database, the checkbox will be checked. Oterwise the checkbox will not be checked.

If you stay away from that multi check array stuff you won't have these problems.

Just work with individual single checkboxes. So there's 20 of them, so what.

jlrdw left a reply on How To Develop Multiple Images Uploding System In A Form In Laravel 5.6 • 1 day ago

I know you will probably not believe a word I'm saying but honestly if you search the forum, that has really been covered before I am not making that up.

19th July, 2018

jlrdw left a reply on Handling Front-end Controllers And Back-end Controllers • 2 days ago

It's all the same and admin area is still a controller and model. No different than users you have a regular user and you have an admin user but they are all still users.

Some people use an admin package but I write my own code an admin area is basically a navbar with divs with float left so many people overthink this stuff.

It's just basic navigation when all is said and done the best admin package I have ever seen is the keyboard and knowing basic CSS.

jlrdw left a reply on How To Clear The Users Browser Cache So That The Newest Vue Deploy Loads? • 2 days ago

Uses basically have to be smart enough to clear browser cache as-needed or give them a friendly warning somewhere on the page to clear catche as needed.

I don't believe this no magic cover all answer here.

jlrdw left a reply on Handling Front-end Controllers And Back-end Controllers • 2 days ago

create and store methods is backend code.

If you just follow Taylor's conventions in the documentation you will be fine.

jlrdw left a reply on How To Store Checkbox Values If Check Box Is In Foreach Loop (laravel) • 2 days ago

Do a normal form, not foreach a form. Look at some of those examples. Remember a checkbox has no POST if not checked,

You have to check that in controller.

That's why I showed the:

if($request->has ...

jlrdw left a reply on How To Store Checkbox Values If Check Box Is In Foreach Loop (laravel) • 2 days ago

If you could perhaps perform a search, a while back Cronix gave a splendid example of just that.

jlrdw left a reply on Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException • 2 days ago

Are you sure you did not jump into laravel too fast without taking Jeffries laravel from scratch series, the skills learned there alleviates so many of the problems and questions that pop up here.

jlrdw left a reply on Laravel Can't Find My Assets On Production • 2 days ago

you can set things up correctly on a shared host. However on one shared host I put the images under a folder under public_html, which is usually just fine for images that aren't private. If it was a big time business application you would have a dedicated server anyway for example I do not think that FedEx uses shared hosting.

jlrdw left a reply on Laravel Can't Find My Assets On Production • 2 days ago

I can read your environment file as example part of your app key contains

GK9rV

So as I suggested in my above post please stop what you're doing and set up everything correctly and then start troubleshooting other problems.

The way you are set up now is a major security flaw.

jlrdw left a reply on Laravel Can't Find My Assets On Production • 2 days ago

You need to properly set up laravel where are all the main files are above public_html.

Where of course a simple search here would show past replies with details on how to set up I myself have posted images and everything showing and I know Cronix has helped many in that regard.

Can you give us your full site URL?

jlrdw left a reply on LARAVEL OR PHP VERSION ISSUE !! • 2 days ago

What hosting?

jlrdw left a reply on LARAVEL OR PHP VERSION ISSUE !! • 2 days ago

Yah, @jimmck has returned.

jlrdw left a reply on LARAVEL OR PHP VERSION ISSUE !! • 2 days ago

Also did you enable all of the required extensions that larabelneeds in the cpanel.

jlrdw left a reply on How To Make A Table With Multiples Primarykeys Auto Increment? • 2 days ago

Sounds like you need to back way up and learn how the foreign Keys work. And if you plan on using eloquent the documentation gives examples of how the Foreign Relations work and how to set them up.

https://laravel.com/docs/5.6/eloquent-relationships

jlrdw left a reply on Custom Class Is Not Found On Nginx Server • 2 days ago

Clear any and all cache, and try to dumpautoload.

If you were in Windows developing and now on Linux remember Linux is case-sensitive check all file names class names to make sure letter size is correct.

jlrdw left a reply on Allow Softdeleted Users To Login • 2 days ago

Why have them soft deleted rather than that have a role set up of things they can and can't do.

jlrdw left a reply on Get Route Parameter And Query Parameters • 2 days ago

request()->all() doesn't get parameters passed through the route.

18th July, 2018

jlrdw left a reply on Number Of Processes In Cpanel • 3 days ago

I would work with my hosting company tech support maybe they could help you with what's happening.

jlrdw left a reply on Creating Database Tables? • 3 days ago

jlrdw left a reply on Number Of Processes In Cpanel • 3 days ago

Well OP asked, I figure get set up correct first. Then make sure something malicious isn't happening, see:

https://webmasters.stackexchange.com/questions/51805/how-to-find-what-is-maxing-out-my-entry-processes

jlrdw left a reply on Creating Database Tables? • 3 days ago

I get errors regarding "use App\nameOfTable"

Migrations are not required, existing tables are fine. But most use migrations.

But how about more code, like model, controller, etc.

Have you viewed Jeffrey's intro video series?

jlrdw left a reply on How To Solve Laravel NotFoundHttpException • 3 days ago

How to solve Laravel NotFoundHttpException

Take a while from laravel, and take a few weeks to learn some basics of:

  • HTML
  • PHP with OOP and MVC
  • Basic CSS
  • Some basic JS

Then dive into laravel.

Also if you haven't yet take all of Jeffrey's free basic intro videos:

trip from we clickon button then driverlist popup comes then we call afunction Booking & The Booking function is used in webservice.

Wow.

jlrdw left a reply on Number Of Processes In Cpanel • 3 days ago

Does the laravel have some minimum server requirements?

Right on the home page of docs: https://laravel.com/docs/5.6#server-requirements

jlrdw left a reply on What Is A Right Way To Authenticate SPA JavaScript Application? (API) • 3 days ago

For a very secure site, like a banking app you want strong security, a secure stored token. Seems JWT is a good way to go. But study all latest 2017 through 2018 api authentication techniques.

If there's ever a question of I wonder if that is secure enough, then NO.

Edit Your Profile
Update

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