SSH into Laravel forge from Windows 10
Make sure you have added your public key to forge via the admin website then just use ssh forge@your_site_ip from hyper or command line
Make sure you have added your public key to forge via the admin website then just use ssh forge@your_site_ip from hyper or command line
This query will join the engineers table and the courses table to the qualifications table and will make the engineers.name column available as engineers_name in the view. Remember relationships on this query (qualifications) will not be available in the view. Example will not work.
When using selectboxes in Vue.js you often need to pre-select an option when presenting an edit form for example. The script then sets the original value on the mounted life-cycle hook.
When installing Valet+ on macos I always ran into errors complaining about apcu_bc modules. To fix this go to the php.ini file in each php folder in the /usr/local/etc/valet-php directory and remove all the lines above the line that begins with extension_dir=. Run valet fix && valet install and all will be good.
When you need a random number between min and max in JavaScript you can use the following code.
When writing your migrations in Eloquent you may want to define something like To do this (in version 6 of Laravel) you must define the foreign keys using the following syntax to match the new bigIncrements autoincrement key added by Laravel to all tables.
I made a vue.js component to populate a field of text dependant on what was selected in a dropdown box. When the component loaded it needed to display the currently associated option. In Laravel blade you would write a ternary that checked the current option being added by a foreach loop with the currently associated... » read more
I have recently started building Vue.js components for my Laravel apps. When I first tried I found it difficult to get Vue.js to work and also allow the use of the excellent Vue Devtools chrome extension. This is how I finally got it working with no errors. layouts\app.blade.php Note that the <script src=”{{ asset(‘js/app.js’) }}”></script>... » read more
I have been creating web applications with the excellent Laravel PHP framework for about two and a half years. On macos I have always used PHPStorm IDE and Valet with a local install on MySQL. When on Windows I use Homestead. I have found that Homestead can suffer form performance issues on Windows so I... » read more
Hi. My name is Paul. I’m 48 and work as an IT manager for a commercial electrical contractor. When I joined I was teaching myself to code and wrote a few apps in Python for the business. That led to the business funding a two year foundation degree in Computer Science. After completing that I... » read more