devonian

Experience

470

0 Best Reply Awards

  • Member Since 1 Year Ago
  • 0 Lessons Completed
  • 0 Favorites

27th December, 2017

devonian left a reply on Problems With Hosting - PHP7 • 3 months ago

Hi xmarks,

Apologies for the delayed reply - hope you have a great Christmas.

I've spoken to my superiors and using Forge is not an option.

Can you recommend any hosts that are truly PHP 7 ready, with PHP 7 on the command line - most seem to use PHP 5.4 and instead layer 7 on the top of it...

15th December, 2017

devonian started a new conversation Problems With Hosting - PHP7 • 4 months ago

Hi all, I've been having real problems with my webhost since I upgraded the Laravel 5.5 as it requires PHP 7 as a minimum.

The problems I seem to have encountered is that most hosting companies servers come preinstalled with PHP 5.4 - you can then choose within Plesk a PHP version (such as PHP 7) which is essentially 'layered' on top.

Problem is this doesn't install PHP 7 on the command line - so making updates, etc doesn't work. Making things a real headache.

I've spoken to my host about manually installing PHP 7 on the command line and they highly advised against doing this as it would likely break things. I went against their advice and did install PHP 7 on the command line, and it did rather spectacularly cause carnage.

I have tried using LaravelForge but really wasn't keen on the whole setup.

I guess I'm asking what can I do? Can anyone recommend any good hosts where PHP 7 is installed as standard on the command line?

Really hope someone can assist me here.

23rd October, 2017

devonian left a reply on Group Routing - Controller Not Found • 5 months ago

Hi there, many thanks for your quick reply. I had made a clean install of Laravel 5.5 and then migrated everything across - I foolishly forgot to transfer the Middleware folder.

Thank you pointing that out and helping me fix the issue, much appreciated.

21st October, 2017

devonian started a new conversation Group Routing - Controller Not Found • 6 months ago

Hi everyone, just finished upgrading our web-app to Laravel 5.5, from 5.4. I seem to have an issue where any route inside of a route group doesn't appear work, I'm displayed with an error saying 'Class basket does not exist'.

My routes files looks like:

Route::middleware('basket')->prefix('basket')->group(function(){
    Route::get('/', '[email protected]');
    Route::post('basket/shipment', '[email protected]');
    Route::post('basket/loyalty', '[email protected]');
    Route::post('basket/discount', '[email protected]');
    Route::get('basket/remove-discount', '[email protected]');
    Route::get('basket/remove/{id}', '[email protected]');
    Route::get('basket/destroy', '[email protected]');
    Route::resource('basket', 'BasketController');
  });

Any help would be hugely appreciated.

25th July, 2017

devonian left a reply on Global Method - Newsletter Subscribe • 8 months ago

Hello,

Sure, I'll have three separate forms across the site - all of which is to subscribe to our newsletter. We require two bits of information, first name and email address.

However, at the basket, we have a checkbox which says allows the user to subscribe (as by reaching the basket they will have created an account and we'd already have their data) hence why we have just a checkbox.

I desire to enter the data [first name, email] into a newsletter table.

So, we have three forms across the site and checkbox as points where I'd like to add functionality to insert record into newsletter table.

Hope this makes sense.

devonian left a reply on Global Method - Newsletter Subscribe • 8 months ago

Hello, thank you all for your replies much appreciated. topvillas you are correct - there will be several forms the user can subscribe from.

36864, I wouldn't be able to use AJAX for this particular thing.

I'll take a look into a trait, not used these before - is this what you mean?

http://culttt.com/2014/06/25/php-traits/

devonian started a new conversation Global Method - Newsletter Subscribe • 8 months ago

Just a quick one - I need to implement a newsletter subscribe/join function - there are several places throughout the site where you can join up/subscribe.

I can't use a route to handle this as I need to be able to subscribe a user from within another route.

Any suggestions, please?

24th July, 2017

devonian left a reply on SASS Showing In Inspector • 8 months ago

Ignore me, just worked it out - I had source map selected in my asset compiler! I need sleep...!!

devonian started a new conversation SASS Showing In Inspector • 8 months ago

Hi all, just a quick question - why is my SASS being shown as the source (content.scss) in the inspector rather than the compiled CSS file? Can provide a picture if that clarifies somewhat.

I've tried seeing if Laravel is including the path to the scss file [/resources/assets/sass/content.scss] but it's no where to be found in the page source so I'm not too sure where it's getting that from.

I'm quite confused!

6th July, 2017

devonian left a reply on Accessing User Object From Within Notification Blade Template • 9 months ago

Awesome, thank you so much - that worked a charm. Not sure why I didn't think of that myself, brainfart moment!

Thanks for your concise and speedy reply.

devonian started a new conversation Accessing User Object From Within Notification Blade Template • 9 months ago

Hello all, just a quick question - is it possible to access the user object from within a Notification Blade template?

It would be great if I could add the users first-name to the master template rather than individually adding the greeting line to the Notification classes.

Thanks in advance :)

19th March, 2017

devonian started a new conversation Loyalty Scheme • 1 year ago

Hi all, I've been tasked with creating a loyalty programme, where by the user will receive 5% off their order value as loyalty. I've built a variety of websites in the past, but have never built a loyalty scheme/programme.

I've had a look for some packages but there doesn't seem to much on offer...so thinking I'm going to need to roll this feature out myself, can anyone provide any pointers please?

Would massively appreciate any advice. Thanks in advance!

devonian left a reply on Ecommerce Recently Viewed Products • 1 year ago

Hi martinbean,

Thanks for your prompt reply - much appreciated. That's a big help, thank you for pointing me in the right direction.

The brief is to display the last eight most recently viewed products globally, just above the footer of the site...

Thanks in advance!

17th March, 2017

devonian started a new conversation Ecommerce Recently Viewed Products • 1 year ago

Hello, first time posting on here so please go gentle on me :) I've been asked to build a recently viewed product list into my ecommerce application - though I'm a little stumped as to how to go about integrating this.

Any suggestions or advice? I did think middleware might be an option...?

Thanks in advance!

Edit Your Profile
Update

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