ejdelmonico

Owner at Del Monico Web Services LLC

Experience

235,965

195 Best Reply Awards

  • Member Since 2 Years Ago
  • 1171 Lessons Completed
  • 1 Favorite

24th November, 2017

ejdelmonico left a reply on Forge Restart • 12 hours ago

I would have to say that since Forge does everything as the forge user that the reboot is performed as forge user...which has sudoer privileges. When you power cycle with DO, it is the sample as turning off your computer with the power button. I wouldn't consider it a graceful shutdown and restart.

20th November, 2017

ejdelmonico left a reply on Installing Laravel In An Inner URL • 4 days ago

If you are talking about using a subdirectory to server the Laravel site the answer is yes you can do that. Just make the proper changes to nginx or apache to server the site from the directory you place it in. Just remember that Laravel uses the public directory to serve assets.

ejdelmonico left a reply on Laravel Valet. Showing All Folders In The Localhost • 4 days ago

Did you set the park directory? That is where Valet knows to look for the site directory. You can also use link if the project directory is in a directory that is NOT your park directory.

ejdelmonico left a reply on Sequel Pro Stops Working After Running Migration Successfully • 4 days ago

hmm, that seems odd. I never had any issues with Sequel Pro. Maybe try MySQL Workbench and see if you can connect. If you use JetBrains products, DataGrip is easy to connect and works well.

19th November, 2017

ejdelmonico left a reply on Forge Server - Securities And Improvements • 5 days ago

Forge is very secure and the only changes you need to make is if you need to open ports or add a sudoer or a small config change for nginx, etc. Security updates are done as well as composer.phar updates. All other non-critical patches/fixes will need to be done by the admin.

ejdelmonico left a reply on Sequel Pro Stops Working After Running Migration Successfully • 5 days ago

You will need to check the port that Laradock is running the DB instance on. It appears that Laradock has mysql running on the standard port of 3306 in production but I couldn't find any documentation on the dev port used by docker.

18th November, 2017

ejdelmonico left a reply on Route::middleware • 6 days ago

You can find the middleware that is registered in app\Http\Kernel.php

ejdelmonico left a reply on How Can I Send Cookie While Using REST API? • 6 days ago

Have you tried testing in Postman? Usually, you have to return a header with at least

Authorization    Bearer your-token

The API docs should say how they expect to receive a request.

ejdelmonico left a reply on How Can I Send Cookie While Using REST API? • 6 days ago

Hmm, well I suppose it could be but usually an api provides auth to the user and the session cookie is stored on the authorized users domain.

ejdelmonico left a reply on How Can I Send Cookie While Using REST API? • 6 days ago

Your issue could be that cookies are domain specific. In other words, exclusive to that domain...and subdomain specific.

17th November, 2017

ejdelmonico left a reply on Testing In Laravel Doesn't Persist In Method • 1 week ago

Have a look at these tests for the framework, they may help resolve the issue.

https://github.com/laravel/framework/blob/5.5/tests/Auth/AuthPasswordBrokerTest.php

ejdelmonico left a reply on 500 Server Error With Axios • 1 week ago

Use axios.post() and place this code in the head of your layout

<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">

axios will return a promise so handle it with .then() and catch errors with .catch()

ejdelmonico left a reply on Running `npm Install` On Server Deploy Using Forge • 1 week ago

@plushyObject The general recommended process for deploying on Forge is to push the code and run npm install and npm run production. I run many Forge servers and have never had an issue with doing that. No sense in making it more complicated for the next maintainer.

ejdelmonico left a reply on Cross Issue With Axios Consumig Rest Web Service In Laravel • 1 week ago

Did you add cors to the http kernel? If I remember correctly, in app/Http/kernel, you need to add 'cors' => \Barryvdh\Cors\HandleCors::class, in $routeMiddleware and then use it in $middlewareGroups by adding cors to api. Also, you must add approriate headers to the request. I usually use a middleware which would also be added in the same way as cors.

ejdelmonico left a reply on Forge Own Certificate Has Problem On Install • 1 week ago

That sounds odd and probably should be investigated. I would file a support issue in the bottom right corner of the home page. It looks like a life ring.

ejdelmonico left a reply on Route:list Wrong • 1 week ago

@edgy If the suggestion worked for you, please make the answer as correct so that others may find it while searching. Thanks.

16th November, 2017

ejdelmonico left a reply on Route:list Wrong • 1 week ago

@edgy Try clearing the route cache php artisan route:clear, php artisan cache:clear and php artisan clear-compiled. Maybe that will do it for you.

ejdelmonico left a reply on Server Side Encryption Vs Client Side Encryption • 1 week ago

If you do it client side then all of your users better have a very recent mobile and desktop or play some elevator music. I would opt to encrypt server side and rely on the basic protections of SSL to get it there. You can scan over this https://laravel.com/docs/5.5/encryption

ejdelmonico left a reply on Would You Heavily Modify Spark, Or, Roll Your Own? • 1 week ago

Make your with Cashier. All that modification seems like a heck of a lot of technical debt. Besides, Spark is built on top of Cashier. You could probably find plenty of articles on it.

15th November, 2017

ejdelmonico left a reply on Load Balancer: Can Someone Explain Me How To Replicate The Database? • 1 week ago

Got to https://serversforhackers.com/ and search for explanations and videos.

ejdelmonico left a reply on Sending Mail In WebServer - Return Source Code • 1 week ago

Make the email template one page and have it include all styles within the page. Or, you can send a plain text email. Also, markdown is available. For example:

<!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">

<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

    <style type="text/css" rel="stylesheet" media="all">
        /* Base ------------------------------ */

        *:not(br):not(tr):not(html) {
            font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
        }
        body {
            width: 100% !important;
            height: 100%;
            margin: 0;
            line-height: 1.4;
            background-color: #F2F4F6;
            color: #74787E;
            -webkit-text-size-adjust: none;
        }
        a {
            color: #3869D4;
        }

        /* Layout ------------------------------ */

        .email-wrapper {
            width: 100%;
            margin: 0;
            padding: 0;
            background-color: #F2F4F6;
        }
        .email-content {
            width: 100%;
            margin: 0;
            padding: 0;
        }

        /* Masthead ----------------------- */

        .email-masthead {
            padding: 25px 0;
            text-align: center;
        }
        .email-masthead_logo {
            max-width: 400px;
            border: 0;
        }
        .email-masthead_name {
            font-size: 16px;
            font-weight: bold;
            color: #2F3133;
            text-decoration: none;
            text-shadow: 0 1px 0 white;
        }
        .email-logo {
            max-height: 50px;
        }

        /* Body ------------------------------ */

        .email-body {
            width: 100%;
            margin: 0;
            padding: 0;
            border-top: 1px solid #EDEFF2;
            border-bottom: 1px solid #EDEFF2;
            background-color: #FFF;
        }
        .email-body_inner {
            width: 570px;
            margin: 0 auto;
            padding: 0;
        }
        .email-footer {
            width: 570px;
            margin: 0 auto;
            padding: 0;
            text-align: center;
        }
        .email-footer p {
            color: #AEAEAE;
        }
        .body-action {
            width: 100%;
            margin: 30px auto;
            padding: 0;
            text-align: center;
        }
        .body-sub {
            margin-top: 25px;
            padding-top: 25px;
            border-top: 1px solid #EDEFF2;
        }
        .content-cell {
            padding: 35px;
        }
        .align-right {
            text-align: right;
        }

        /* Type ------------------------------ */

        h1 {
            margin-top: 0;
            color: #2F3133;
            font-size: 19px;
            font-weight: bold;
            text-align: left;
        }
        h2 {
            margin-top: 0;
            color: #2F3133;
            font-size: 16px;
            font-weight: bold;
            text-align: left;
        }
        h3 {
            margin-top: 0;
            color: #2F3133;
            font-size: 14px;
            font-weight: bold;
            text-align: left;
        }
        p {
            margin-top: 0;
            color: #74787E;
            font-size: 16px;
            line-height: 1.5em;
        }
        p.sub {
            font-size: 12px;
        }
        p.center {
            text-align: center;
        }

        /* Data table ------------------------------ */

        .data-wrapper {
            width: 100%;
            margin: 0;
            padding: 35px 0;
        }
        .data-table {
            width: 100%;
            margin: 0;
        }
        .data-table th {
            text-align: left;
            padding: 0px 5px;
            padding-bottom: 8px;
            border-bottom: 1px solid #EDEFF2;
        }
        .data-table th p {
            margin: 0;
            color: #9BA2AB;
            font-size: 12px;
        }
        .data-table td {
            padding: 10px 5px;
            color: #74787E;
            font-size: 15px;
            line-height: 18px;
        }

        /* Buttons ------------------------------ */

        .button {
            display: inline-block;
            width: 200px;
            background-color: #3869D4;
            border-radius: 3px;
            color: #ffffff;
            font-size: 15px;
            line-height: 45px;
            text-align: center;
            text-decoration: none;
            -webkit-text-size-adjust: none;
            mso-hide: all;
        }
        .button--green {
            background-color: #22BC66;
        }
        .button--red {
            background-color: #dc4d2f;
        }
        .button--blue {
            background-color: #3869D4;
        }

        .top-pad {
            margin-top: 14px;
        }

        /*Media Queries ------------------------------ */

        @media only screen and (max-width: 600px) {
            .email-body_inner,
            .email-footer {
                width: 100% !important;
            }
        }
        @media only screen and (max-width: 500px) {
            .button {
                width: 100% !important;
            }
        }
    </style>
</head>

<body>
<table class="email-wrapper" width="100%" cellpadding="0" cellspacing="0">
    <tr>
        <td align="center">
            <table class="email-content" width="100%" cellpadding="0" cellspacing="0">
                <!-- Logo -->
                <tr>
                    <td class="email-masthead">
                        <a class="email-masthead_name" href="{{ url('/') }}" target="_blank">
                            {{ config('app.name') }}
                        </a>
                    </td>
                </tr>

                <!-- Email Body -->
                <tr>
                    <td class="email-body" width="100%">
                        <table class="email-body_inner" align="center" width="570" cellpadding="0" cellspacing="0">
                            <tr>
                                <td class="content-cell">
                                    <!-- Greeting -->
                                    <h1>Hello {{ $data['my_name'] }}</h1>
                                    <p>Email: {{ $data['email'] }}</p>
                                    <p>Subject:  {{ $data['subject'] }}</p>
                                    <div><strong>Message:</strong><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{ $data['message_text'] }}</div>

                                <!-- Salutation -->
                                    <p class="top-pad">
                                        Regards,<br>{{ config('app.name') }}
                                    </p>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>

                <!-- Footer -->
                <tr>
                    <td>
                        <table class="email-footer" align="center" width="570" cellpadding="0" cellspacing="0">
                            <tr>
                                <td class="content-cell">
                                    <p class="sub center">
                                        &copy; {{ date('Y') }}
                                        <a href="{{ url('/') }}" target="_blank">{{ config('app.name') }}</a>.
                                        All rights reserved.
                                    </p>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
</body>
</html>

ejdelmonico left a reply on Valet Serving Php Files • 1 week ago

As rob897 mentioned, put your index.php file in a public directory at the root of the project. That should work for you if you have all the requirements installed.

ejdelmonico left a reply on Ckeditor Conflicting With App.js • 1 week ago

Are you using this package? https://github.com/UniSharp/laravel-ckeditor

ejdelmonico left a reply on Undefined Offset In Laravel • 1 week ago

That error means something in your array is undefined. The message is pretty explicit. Look in you LecturerController around line 293. I would ddd() the values to make sure nothing is missing. If it is an optional value, then you need a default or check for it in code.

ejdelmonico left a reply on Sending Mail In WebServer - Return Source Code • 1 week ago

First for mail all styles need to be in the document so you can't link to them. In other words, like you did with the br tag in the document. So, bootstrap is out unless you process it into one document. Try to correct that and see what happens. That will probably fix the issue.

14th November, 2017

ejdelmonico left a reply on Undefined Offset Error • 1 week ago

Run dd($values) to make sure the values are present. If they are, make sure the keys are correct. Something is not there in the array for that error to appear. If some values are allowed to be not required, then you will have to adjust your code to account for it.

ejdelmonico left a reply on Cross Issue With Axios Consumig Rest Web Service In Laravel • 1 week ago

Did you install laravel-cors and publish the config?

ejdelmonico left a reply on Laravel 5.4 Auth Session Timeout • 1 week ago

Did you try switching the driver to cookie? It's a long shot but its easy to try. I really doubt the timer would cause it but some related code could so maybe comment that code out and see if the problem goes away.

13th November, 2017

ejdelmonico left a reply on .htaccess On Root Directory To Redirect To Public Folder • 1 week ago

@snapey how is it dangerous to place the project in a subdomain and redirect to that subdomain with htaccess? I must be missing something if that is the case.

ejdelmonico left a reply on .htaccess On Root Directory To Redirect To Public Folder • 1 week ago

Hmm, well then I think you are going to have a tough time trying to figure that one out. The only suggestion I would have is to place the Laravel site in a subdomain and link it via the root htaccess. That will allow all sites to run. You can even rewrite the url so no one notices.

ejdelmonico left a reply on .htaccess On Root Directory To Redirect To Public Folder • 1 week ago

Well I have never tried two levels deep but maybe adjust these:

RewriteCond %{REQUEST_URI} !panel/public/
RewriteRule (.*) /panel/public/ [L]

ejdelmonico left a reply on .htaccess On Root Directory To Redirect To Public Folder • 1 week ago

What is the root directory in the shared hosting? Is it www or public_html?

ejdelmonico left a reply on Laravel 5.4 Auth Session Timeout • 1 week ago

Clear all caches. Look for browser plugin that clears the session.

php artisan config:clear
php artisan cache:clear

12th November, 2017

ejdelmonico left a reply on Mysql Setup, Whithout Messing With DesktopServer • 1 week ago

It is most likely because your desktop server is using port 3306 so change one of them to 3307 or 3308.

ejdelmonico left a reply on PHPStorm Not Helping To Find The Right Namespace • 1 week ago

Yes, suggestions will be a choice you have to make. The IDE picks anything that may apply which makes phpstorm very flexible. The resource root part I mentioned is for when you make relative paths. If you don't tell the IDE where the root is for the public relative path then it will not give you autocompletion and will show a patch error.

ejdelmonico left a reply on PHPStorm Not Helping To Find The Right Namespace • 1 week ago

@Boubou First you need to set the correct php interpreter and where your composer executable is located. Same for Javascript and node. That should be set in file > defaults. For the project, you just check to make sure they are correct and if using JS then enable node and npm. Also, enable Laravel plugin and check that Blade is enabled. Under Directories, you need to make app a source. After you add app, click the tiny P and type App (capitial A) as an alias. If testing, you add test as Tests and make the capitalized alias for psr-o and psr-4. If you phpstorm to find paths then you also need to add public directory as a resource root. After you are done that you need ide_helper so that phpstorm can discover Laravel classes and subclasses. Just add it a make sure you run the proper commands so that the autoload file is recompiled and a meta file for phpstorm's reference is established.

11th November, 2017

ejdelmonico left a reply on Homestead Setup Failing On Vagrant Up • 1 week ago

Did you complete the setup of Homestead.yaml and your hosts file?

ejdelmonico left a reply on Session Issue • 1 week ago

Are you using barryvdh/laravel-debugbar? It shows the sessions values.

ejdelmonico left a reply on Laravel - Route Not Accesable • 1 week ago

You need to GET the page (form) first, then submit the form to the POST route. The GET request will display the view, the POST will process the submission.

ejdelmonico left a reply on User Required To Re-login If Accesses Web Site With Www • 1 week ago

I just checked a few of my own sites and I have no issues with the sessions. Sounds like your session is not available to the subdomain.

ejdelmonico left a reply on Spark And Existing Laravel Project • 1 week ago

The only way I think you can smoothly do it is to create a fresh Spark project and then copy over views and controllers, etc. Then you you can adapt them to Spark. Try not to modify the Spark code or you will have constant issues when upgrading to newer versions.

ejdelmonico left a reply on Problems Setting Up Laravel 5.4 During "Laravel From Scratch" Course With Jeffrey -- Help Would Be Appreciated!! • 1 week ago

  1. You have to be inside the project directory and run php artisan -V to see the version of Laravel installed in the project. Running Laravel -V gives you the installer version. If you need to update the installer version, run composer global update and for updating Laravel in a project, go into the project directory and run composer update.

  2. If on a Mac, you need to give the ping command a request number or just quit the command. run ping -c2 foo.dev. You should not use .dev any longer because Google has taken over the TLD so your browser will start looking for the address in recent versions. Just change it over to .local or .app or something as you should be fine. Make sure your app has an app key in the .env file.

ejdelmonico left a reply on Test Subscription Fails • 1 week ago

Did you define the STRIPE_MODEL, STRIPE_KEY and STRIPE_SECRET in the .env? Did you define the plans in app/Providers/SparkServiceProvider.php? Also, a corresponding plan needs to be in Stripe while in test mode.

ejdelmonico left a reply on Auth::routes() And SoftDeletes • 1 week ago

@FernandoD If you need to override the standard auth routes, you have to remove Auth::routes() and copy over the routes from /vendor/laravel/framework/src/Illuminate/Routing/Router.php and the auth() method. Once copied, you can modify anyway necessary with standard auth.

10th November, 2017

ejdelmonico left a reply on Laravel 5.5 App On Synology DS412+ • 2 weeks ago

@jrmypttrsn If you are getting 5.6.x returned from php -v then you are not linking to 7.0. Even composer update requirements are telling you that php version is 5.6. How did you install php7?

ejdelmonico left a reply on API Request Error With Barryvdh/Laravel-cors • 2 weeks ago

Did you run php artisan vendor:publish --provider="Barryvdh\Cors\ServiceProvider"?

9th November, 2017

ejdelmonico left a reply on Trying To Connect Forge To New Github Account • 2 weeks ago

@Asafmazuz You need to go into the site through Forge panel and uninstall the current git repository. The, add the new repository. You may have to refresh the github token in the settings panel if it is unsuccessful. Make the site in Forge has your SSH key as well.

ejdelmonico left a reply on Laravel API Consumption In Ionic 2 • 2 weeks ago

Sure. You can DM me on twitter.

ejdelmonico left a reply on Laravel API Consumption In Ionic 2 • 2 weeks ago

Well, that depends your your actual requirements but for starters...your stack can be Laravel 5.5, laravel/passport, laravel-fractal and laravel-cors. Those packages will cover everything you need for a basic project. That gives you CORS, access tokens and transformation of json data. You can modify your exception handling for better api responses. Basically, you would end of with various data and error objects for users to consume...like your app. It's not complicated but you will need to be familiar with making an api. If you want really easy, investigate using Strongloop by IBM.

ejdelmonico left a reply on How To Use A Normal If Statement In PHP In Controller To Check If A Dropdown Has A Selected Value • 2 weeks ago

Each select option should have a value. Just check if the select's chosen value is equal to the one you are filtering.

Edit Your Profile
Update

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