Jump to content


  • Content count

  • Joined

  • Last visited

  • Days Won


rallport last won the day on April 14

rallport had the most liked content!

About rallport

  • Rank
    Laravel 5 Rocks

Users Experience

  • Experience
    Web Guru
  • Area of Expertise
    Web Developer

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location
    England, UK

Recent Profile Visitors

37,908 profile views
  1. Saying that, there are some pretty tasty Laravel based CMS's - have you seen PyroCMS and October CMS?
  2. Yep, true. Sometimes you'll also find great community projects that you can make use. Just today I had a job to implement a versioning system into a Laravel CRM. The client wanted to track column level changes to records, assign blame to these changes and restore previous versions of a record. https://github.com/VentureCraft/revisionable covers 80% of what I need to achieve and is a simple composer package I can pull in. One other thing I forgot to mention above is framework support. Laravel (like other frameworks) has a major version upgrade roughly every 6 months. Minor releases are made very frequently. These updates give you application more features, more security and sometimes more speed. Just like your chosen operating system you install updates to improve stability and add features. A framework gives you this added benefit. Laravel goes one step further and gives you a very detailed upgrade path - https://laravel.com/docs/5.6/upgrade. Having written a lot of code from scratch in my early days I can safely say that I'd rarely come back to it. In my first year I had a a little class titled "Tools" (lol) that contained a set a random random static helpers. If I found a bug I had to go back to all old projects and up it. With a framework I can just update the Laravel composer dependency to patch my application.
  3. Purely out of interest (and me being nosy), do you work as part of a team or freelance? Having used Laravel since version 3, you are opened up to a lot a good stuff, as Laravel has kept up with all the increased goodness PHP 7 offers. After using Laravel for a while I opened up IoC, Traits, ORMs and it helped reinforce basic OOP principals such as coding to contracts and SRP. You can still write code that no one understands with a framework. Hell, the fact a framework is used, that is supported (Laravel has LTS versions similar to Ubuntu) is a huge selling point for clients when I'm freelancing. If I was competing for a contract against an agency that didn't use a framework, I'd win the contract based on the fact I could sit down and explain the plethora of benefits a frameworks offers to the client and their business. Again, I'm not trying to say coding without a framework is bad, I just find it hard to believe that people work professionally without one in 2018.
  4. That's all fine, but I guess it depends upon your situation. When I was starting out, my first instinct was to start from a blank PHP script and built my application up that way. I learned so much doing that and when I was junior developer, where little responsibility was placed upon me, that was fine. When I moved up a little higher and worked under a senior developer my mind was frankly blown. He used CakePHP and Codeigniter (both still semi decent frameworks) was stupidly productive. I remember a task I was given where I needed to paginate a set a data, where the user could filter that data based upon criteria. I'd spent 2 solid days abstracting away objects that handled responds, filters, pagination, authorization etc. I was pretty chuffed with it. When the senior developer did exactly the same within 1 hr 30 mins in Cake PHP my mind was blown. The code was so elegant and readable. I discussed this at length with the developer and he stated that you need to start out writing code from scratch to get experience. However, there comes a point where frameworks just make sense. To anyone writing all their PHP from scratch I'd urge to to try say Laravel (getting the basics down are fairly easy for anyone with PHP experience). To compare this to the JavaScript world, you could use Vue and React as examples - both are awesome front end frameworks for building UI's. To build a UI you don't need a JavaScript framework at all and could just use plain ES6. React or Vue will give you many (many, many, many ...) baked in functionality to develop faster. Vue in particular is always part of my projects and is worth using for it's data binding and instant updates alone. You do mention about fixing errors and being able to fix it yourself is something I agree with. However, another benefit to frameworks is the fact that at someone else will have run into the same issue - Github issue pages are so useful.
  5. Shopify / Craft (according to Google) isn't a framework. Craft CMS has a Shopify plugin that simply makes calls to the Shopify API. That isn't a framework. Symfony, Laravel, Zend, Phalcon etc. are frameworks. Frameworks are not plugin and play. Whilst Laravel has a slightly slower barrier to entry than say Zend, a lot of PHP knowledge is assumed. I would agree those developers that blindly use Frameworks without a basic knowledge of PHP is inherently bad. However, nowadays a good IDE and use a proper debugger like xDebug is almost essential. Have you tried using a framework, it certainly isn't all done for you. Framework allow you focus on writing code. For instance, when starting a project I don't want to worry (or necessarily charge a client) for very low level components such as routing, pagination, authorization etc. That's part of every project, which is where Frameworks come in. Additionally, all these components are battle tested by the open source community, read the code has been tested to the nth degrree by thousands of developers. Laravel, like other good frameworks all has a full suite of tests you can run too. I've worked as a developer for agencies for 8 years and have been freelancing for nearly 5. Working professionally without a framework is almost impossible and (imo) completely insane. If you work in a team, a Framework is essential. A framework will bring speed and consistency to your development cycle. I've done contract work for agencies who have tried to write everything themselves, in house, it simply doesn't work if teams are involved. The code always has bugs and need "massaging" into new projects. Take you pagination class above. What happens if you need to generate pagination for use in a React / Vue application? You'd definitely need to sit down and spend time massaging that code to return JSON. A good framework takes care of that for me. Laravel (Lumen for APIs) in particular is excellent for this as it automatically casts response obejcts to JSON for you. i.e. https://laravel.com/docs/5.7/pagination#converting-results-to-json I'm rambling now, so I'll stop
  6. It'd only work on page 3567 if I had that many products In my example, the products variable would simply be an empty collection. All this type of low level stuff like writing pagination is a waste of time in my opinion and not something a client should really be paying for. I'd prefer to stick to developing. Take a look at https://laravel.com/docs/5.7/pagination - look at all flexibility you have there with zero work on your part. On your site (framework or not) you'd need to handle the indexing of users visiting or linking directly to page 9999 of your results. In line with general good practice, you should set a 404 header for such pages. That's just good practice. MY example didn;t include that as were were talking about pagination, not setting response headers. However, to include that my example would change to: $products = Product::paginate(10); // or Product::simplePaginate(10) to produce just prev and next links that is more efficient if ($products->count() < 1) abort(404); return view('products.grid', compact('products')); In line with SRP, a pagination class should not be responsible for setting HTTP headers. That would set within your controller. The Url you've posted is very bad for a number of reasons. A 200 HTTP status is returned, a canonical is set to the current url, no 404 status is set or meta noindex set. However, you are using hosted ecommerce software, so you'rte at the mercy of Shopify.
  7. Wow, reading topics such as this make me realize how essential it is to use a proper framework. Low level stuff like sliding pagination is built. In my framework of choice I'd need two links to achieve what's in this thread: Controller: $products = Product::latest()->paginate(10); return view('products.grid', compact('products')); In my view: // Loop over results here // This will display the pagination links {{ $products->links() }} That's it, no other code within the controller is required to determine the current page. If I'm on page 1 or page 10, the correct query is ran. You can control the pagination template via editing a small view partial. I'm lost as to why people would go ahead and write their own low level code like this nowadays.
  8. rallport

    Laravel 5.5 project cannot work on shared host

    Firstly, if you've just copied files from your local to remote host, you will have included all your dev composer dependencies - Laravel has severral pretty weighty ones. Don;t copy the vendor folder and run composer install --no-dev --optimize-autoloader on the server. For the peanuts it costs to host on AWS, I'd go there. I have got several Laravel 5.6 projects I have to host on shared hosting though. As I can't change the document root of the site to /public, I set the root to /public_html/public via adding a .htaccess fiel in the Laravel root at /public_html: RewriteEngine On RewriteRule ^(.*)$ public/$1 [L] This way there's no need to change include paths. Projects in general with Git access on the server make automated deployments a pain. I've deployed countless Laravel applications, right back from Laravel 3. If you'd like any help feel free to send me your code. My best advice would be to use a service like https://forge.laravel.com - I can setup a server with all the good stuff (HTTPS, Redis, Opache, queue works etc.) within a few clicks.
  9. I'd personally just clearly state you no longer wish to work with him. As you control the domain I'd send him a courtesy email telling him you can transfer the domain to him if required. I'd certainly do as @fisicx said above and remove yourself from the whois too.
  10. Just be clear, it doesn't have to complicated. Simply state, "for me to add feature X it will take 2 hours at £20.00 per hour". If you have mentioned this before you made the site and don;t enforce it, you're working for free, which of course is not sustainable.
  11. Hi, So, I have an accountant who do all my business accounts. For the last 9 months I've been trying to get to them to stop sending business critical information via post. In my area the post is very unreliable and usually late. As a result I requested all information to send by email. Whilst this appears to be a small request, it wasn't for my accountants. As they are a fairly large firm getting them to actually communicate via email is hard. The letters they've sent me are sometimes dated weeks old. I've lost count of the number of times I've made a fuss about this one fact. Emails, calls with the director, calls with so many people from the firm, to no avail. My main issue is simple. - I need to ensure that all information sent me about my business arrives on time and without fail. Even after I filled in my GDPR request where there was a box titled "encrypted email only". Three days later they sent me a letter via post. *** face palm *** Now, to the issue. Yesterday morning I received an email from HMRC stating a tax bill had not been paid. It included £180 worth of fines for late payments. I've of course just paid the amount in full to HMRC. After querying this with my accountant they sent me a scan of a letter they sent covering this fact. As I file literally every letter from them, I looked in my folder. This letter was no where to be seen and is something I don;t recall ever seeing. I just emailed them as I'm fuming that I've been unnecessarily fined £180 - something I was trying hard to avoid my requesting all important information send be sent by post. Now to my question, do I have any comeback on my accountants. They basically ignored my requests over many months. I feel it's them who should be paying the fine, not myself. Cheers Rob
  12. Your whole reply puts all the liability on yourself - I hope you never actually sent it to the client. For example, the client could very easily open a huge can or worms in relation to why the site is over budget and that being your fault. If your were to send your email they could also argue that you did try and produced bad work. The above alone is a time sink, which in itself costs you money.
  13. rallport

    Web Designing Future

    This is to be expected. If you want to hire people with experience and the skills required to produce quality products, you'll need to pay for that. People who are good at they do tend to not undersell themselves and are aware of they're worth. It's highly ironic that a web design company based in India are complaining of low prices. The amount of spam that comes from India alone for "cheap SEO services" or "cheap web design services" is at this point silly. Whilst I worked for companies for ~9 years I've been freelancing since early 2014. I've never had any issues getting work as there are many companies who attempt to undercut everyone. Typically people will try out cheap places and then come to me to fix it or have a new system. In a way I should be thanking those designers who attempt to offer the world for £200. At the end of the day, such companies will not survive and I still claim it's impossible to make any sort of profit when doing entire websites for a few hundred pounds. Mainly though, as I'm a developer, I focus my efforts of bespoke back end systems for larger companies and CRO (about a 75/25 split respectively). Nowadays any naive company/individual can claim they're a web designer. One of the things that surprises me (and still does to this very day) the lack of developers out there who are able to write bespoke code without plugins and solve real world problems. i.e. if you throw in Wordpress plugins who are not a developer. Additionally, with bespoke systems I'm able to offer and prove real world value through features and development. That's my take, time for the gym.
  14. rallport

    Should I change hosts?

    4 - 12 hours to renew an SSL - absolute nonsense. Literally a couple of hours ago I setup LetsEncrypt with auto renewal on my own VDs with Amazon.
  15. rallport

    Who Wants to Create My Website?

    My word, that's one awful looking website. It's looks very dated.