Jump to content

benanamen

Members
  • Posts

    2,134
  • Joined

  • Last visited

  • Days Won

    42

Posts posted by benanamen

  1. You have several other problems that have not been mentioned.

     

    1. if(isset($_POST['submit']))  SHOULD BE if ($_SERVER['REQUEST_METHOD'] == 'POST')

    2. You are using the obsolete <center> tag. On top of that, you are missing several closing </center> tags. You should be using CSS.

    3. You are missing several closing </td> tags. If you used a proper IDE with syntax highlighting you would have seen that.

    4. Using a <table> for formating went out in the 90's. Again, you need to use CSS

    5. You need to use Prepared Statements

    6. You have your closing </form> completely split in the logic from your <form>

    7. Having two submit checks is redundant and completely unnecessary

    8. You need to use htmlentities on your DB output.

    9. You are missing numerous basic html tags. Doc type, body...etc.. 

    10. It's pretty clear you need to take some time and learn the basics before trying to move forward.

  2. You seem to have missed the whole XY Problem thing. I don't care about your attempted solution. What is the overall thing that is to be accomplished. What is the REAL problem you are trying to solve, not how you are trying to solve it. Your code and arrays are completely meaningless to my question.

  3. In the currrent version of Laravel Blade has changed a bit from what the tutorial on Layout Files shows at https://laracasts.com/series/laravel-5-from-scratch/episodes/5?autoplay=true

     

    Take note of @show in the current version. Took me awhile to figure out there was changes from the video. Video instructions work, but again, not the current way of Blade Templating. Just reference the 5.3 docs here https://laravel.com/docs/5.3/blade

  4. * Partial Quote

     

    There is quite a lot that you will probably need in order for your database to segment these resellers.

     

    I think it's a bit naive to assume that you will be able to repurpose your existing site and its codebase into a SaaS solution, ......

    This question is too large and open ended to be answered here in anything but vague generality. It's really not what this community exists to do -- we are more focused on specific questions about php, database and web development, and the scope of your question is too general and business specific.

     

    I agree with @gizmola. You are not going to be able to re-purpose your existing site and scale it. You need to "blueprint" the whole thing out before you even write a single line of code. Doing an Enterprise level application is a whole lot different than doing a single site/company app. Right now, you don't know what you don't know.

  5. Yea, Laravel does all the work and authorization is easy, however, it still seems a little magical to me.  I found it helpful to git the directory so I can see what files Laravel is changing when I do things such as php artisan make:auth

     

    For sure! I was thinking, "Is this all there is to Authentication?". I also am going to git for exactly the same reason. The more I study Laravel, the more I am liking it.

  6. You said you have been working on the site for the past 7 years. That leads me to believe your code is probably outdated. Are you using Mysqli or PDO? If you're still using the obsolete mysql_* code, then you have even more work to do before you think about implementing your idea.

     

    You might want to consider posting your DB schema for us to review. If the DB design is flawed, that would be another thing to take care of before implementing something bigger.

  7. Auth is really simple. There are only a few steps. Do this quick tutorial on Auth and see if it answers your questions. I am still learning this.

     

    http://www.hc-kr.com/2016/09/laravel-5-authentication-login-registration-form.html

     

    The Laracasts are really good, but were for a bit older version so some things are slightly different such as routes.php not existing in the current version. (Now routes/web.php). I suggest you just go through these videos step by step and then see if you are left with any questions at the end.

     

    https://laracasts.com/series/laravel-5-from-scratch

  8. Route groups allow you to share route attributes, such as middleware or namespaces, across a large number of routes without needing to define those attributes on each individual route. Shared attributes are specified in an array format as the first parameter to the Route::group method.

     

    You can read about middleware here https://laravel.com/docs/5.3/middleware

     

    As far as when I was doing the Auth, sending emails either locally or through Gmail was very, very simple.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.