Snapey

at Novate / Microlise

Member Since 5 Years Ago

Mansfield

Experience Points
1,513,205
Total
Experience

0 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
1187
Lessons
Completed
Best Reply Awards
2142
Best Reply
Awards
  • start-engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 50
1,513,205 XP
Nov
18
11 hours ago
Activity icon

Replied to Storage Session Error

yes.

Activity icon

Replied to Deployment Of Laravel Wildcard Subdomain App On Shared Hosting Server Causing Error

You need to create a DNS entry on the domain so that all subdomains point to the same website. This is in addition to making the web server respond to all those domains.

Frankly, in shared hosting, you are probably out of luck having influence regarding the web server.

Activity icon

Replied to Issue In Empty() Method

It would help to know what $user_ehr is ?

Activity icon

Replied to Checkbox Shows Values Only ,'not Checkbox'

Your checkboxes don't look normal. I assume you have some css overriding the styling which is not being applied to the checkboxes in the table.

Why use a table, why not use UL like earlier?

oh, and why not just inspect them with your developer tools after inserting the values?

Activity icon

Replied to Help In Optimize Solution Of DB CURD Operation.

hard to help without code

Nov
17
1 day ago
Activity icon

Replied to Questions About Mass Email With Scheduler

I always use the route helper in views and never have such issues

Activity icon

Replied to Questions About Mass Email With Scheduler

when urls are generated from events or cron jobs, laravel cannot use the request domain to set the hostname for assets. Instead, it uses the app url from config.

Personally, I use Postmark, and they are highly recommended

Activity icon

Replied to Why Does Verification Handler Run More Than Once?

Validation or Verification (user email address)?

Activity icon

Replied to What Theme Jeffrey Way Ise On Laravel 6 From Scratch Course?

do you mean editor theme or html?

Activity icon

Replied to Argument 1 Passed To Illuminate\Database\Grammar

I'm referring to the fact that if the OP iterates over request->all() then I would expect one of the fields to be the csrf token, and the code shown iterates over all the request attributes and not an array stored under a single request key?

Nov
16
2 days ago
Activity icon

Replied to How To Get The Corel Draw Raw File From An Installed Corel Draw On My System

No, you cant just copy it. Applications are much more than a simple file. You need to run the original installer for any complex application.

Activity icon

Replied to Storage Session Error

You have Laravel configured to store user sessions on disk. Many randomly named files will be created for sessions and cached views. Therefore your web server must be allowed to write to the storage folder.

Activity icon

Replied to Str Limit Using QuillJS

If you want to have an 'excerpt' then its safer to have a separate field for it since truncating the html will create invalid markup

Activity icon

Replied to Exception When Running Php Artisan - Module Mbstring Already Loaded

because laravel/ui should be compiled into your front-end public/css and public/js assets - there should be no need for it in production because you ship the compiled assets

Activity icon

Replied to Exception When Running Php Artisan - Module Mbstring Already Loaded

You should copy composer.lock from your development environment to your production environment, and then run composer install --no-dev

This will install the exact same package versions in production as you have in development.

Activity icon

Replied to Custom Button

You need the custom button library.

I believe it's quite inexpensive

Activity icon

Replied to [Laravel]Authentification System Doesn't Works Correctly.

What file is this constructor in?

public function __construct()
{
    $this->middleware('auth', ['except' => ['index', 'products', 'add_product', 'edit_product' ]]);
}

is it relevant to the question?

Activity icon

Replied to Exception When Running Php Artisan - Module Mbstring Already Loaded

You have a warning about mbstring but the real problem is that the autoloader cannot find Laravel\Ui\UiServiceProvider

My first thought is that perhaps there is a case issue between UI and Ui somewhere

Check the letter case of all things and if you make any changes, remember to run composer dump

Activity icon

Replied to Argument 1 Passed To Illuminate\Database\Grammar

iterate over the array and run create for each sub-array

Nov
15
3 days ago
Activity icon

Replied to Why When I Run An Artisan Command My Scheduler Run Too ?

@nakov thats not my experience - and would be raised as a bug before now if this was the case...

Activity icon

Replied to Laravel 6 On Shared Hosting Not Working

its 2 months old...

Activity icon

Replied to Why Is Link To Page Section /#footer Not Linking?

decades of web site building...

Activity icon

Awarded Best Reply on Why Is Link To Page Section /#footer Not Linking?

http://www.echoecho.com/htmllinks08.htm

in your case

// footer.blade.php

   <div class="contactinfo">
       <a name="footer"><h2>Contact BidBird</h2></a>

   </div>
Activity icon

Replied to Why Is Link To Page Section /#footer Not Linking?

http://www.echoecho.com/htmllinks08.htm

in your case

// footer.blade.php

   <div class="contactinfo">
       <a name="footer"><h2>Contact BidBird</h2></a>

   </div>
Activity icon

Replied to Ajax Method Not Working For Select State Field

are we meant to just guess what problem you need to solve?

Activity icon

Replied to How To Use Label Name Instead Of Input Name In Validation

No, the validator has no access to your form labels. Use custom error messages instead.

Activity icon

Replied to Text Limit

Bear in mind that if your testimonial contains any formatting (html) then this will need to be stripped otherwise you end up with open tags that go on to break your layout.

Nov
13
5 days ago
Activity icon

Awarded Best Reply on Laravel And Wordpress

Your friend is not even comparing two similar things. Wordpress is a framework for a CMS. Laravel is a framework for just about anything you like.

SEO friendly is a function of the application you build with Laravel. How you build it determines how SEO friendly it is. Same for performance. What you build with Laravel determines its performance.

The question is ignorant of the facts. Wordpress is considerably more bloated than a Laravel application and will always be slower for equivalent functionality IMO

Nov
12
6 days ago
Activity icon

Replied to Laravel And Wordpress

Your friend is not even comparing two similar things. Wordpress is a framework for a CMS. Laravel is a framework for just about anything you like.

SEO friendly is a function of the application you build with Laravel. How you build it determines how SEO friendly it is. Same for performance. What you build with Laravel determines its performance.

The question is ignorant of the facts. Wordpress is considerably more bloated than a Laravel application and will always be slower for equivalent functionality IMO

Activity icon

Replied to SQLSTATE[22007]: Invalid Datetime Format: 1366 Incorrect Integer Value: 'true' For Column 'isVisible'

use a ternary

$model->isVisible = $request->has(isVisible)?1:0;

This will also cope with the fact that the checkbox will be missing from the request when it is unchecked

Activity icon

Replied to Login Function Doesn't Validate

@jlrdw this is plain old php. I doubt any framework is even installed.

Activity icon

Awarded Best Reply on How To Render Form Data Before Saving As Model In Controller

I would echo that. I provide a templating system on one of my projects where I used ==xxxxx== to signify placeholders. These are then substituted in the controller;

//make substitutions in the templates
$journey = preg_replace("/==date==/", $dt->toDateString(), $journey);
$journey = preg_replace("/==nextday==/", $dt->addDays(1)->toDateString(), $journey);
$journey = preg_replace("/==routeID==/", $routeID, $journey);
$journey = preg_replace("/==initials==/", $initials, $journey);
$journey = preg_replace("/==name==/", $name, $journey);
$journey = preg_replace("/==counter==/", $passCount, $journey);

The user is only allowed to specify the strings listed. preg_replace changes all occurrences of the tag in the string. I provide a cribsheet on the page to tell the user what parameters can be replaced.

Activity icon

Awarded Best Reply on This Is A Laravel Code Where Call A Route From The Controller.

Its no different to doing it in a blade view, you just have to concatenate the strings instead of using blade echo statements

    foreach ($orderdetail as $key => $value){
        $orderdetail[$key]->tripId = '<td><a href="' . url('/transaction_detail',value->trip_transaction_id) . '">'.$value->trip_transaction_id.'</a></td>';
    }
Activity icon

Awarded Best Reply on Naming Routes Ideas

This might be useful

https://restfulapi.net/resource-naming/

And Adam's talk is ALWAYS worth watching.

https://youtu.be/MF0jFKvS4SI

Following adam's advice, you would have a route that considers an invoice payment as the create route on a InvoicePayment controller. etc.

Activity icon

Replied to Naming Routes Ideas

This might be useful

https://restfulapi.net/resource-naming/

And Adam's talk is ALWAYS worth watching.

https://youtu.be/MF0jFKvS4SI

Following adam's advice, you would have a route that considers an invoice payment as the create route on a InvoicePayment controller. etc.

Activity icon

Replied to WhereTranslation

I guess because you want one category to have many translations. 1:many therefore you need to hold the many in a different table

Activity icon

Replied to This Is A Laravel Code Where Call A Route From The Controller.

Its no different to doing it in a blade view, you just have to concatenate the strings instead of using blade echo statements

    foreach ($orderdetail as $key => $value){
        $orderdetail[$key]->tripId = '<td><a href="' . url('/transaction_detail',value->trip_transaction_id) . '">'.$value->trip_transaction_id.'</a></td>';
    }
Nov
11
1 week ago
Activity icon

Replied to Taking Sql DB Backup Through Custom Artisan Cammand

one day you might rely on that backup. Lets hope you got it right.

Some things are not worth the risk.

Activity icon

Replied to Taking Sql DB Backup Through Custom Artisan Cammand

Not sure why you would do this when the spatie backup package does so much more and is very robust.

https://docs.spatie.be/laravel-backup/v6/introduction/

Activity icon

Replied to Should I (or Is It Worth It To) Use Queue's For Webhooks?

bear in mind that if you queue on any api, you lose the ability to tell the other party that there request succeeded. All you could say is 'we're on it'

So if the input was to say that payment had been taken, ensure you validate the information provided and then queue more complex actions on your side.

Activity icon

Replied to Sending SMS

You need to use a service bureau (like Nexmo) to send SMS. Don't waste time trying to do it yourself.

You WILL need to pay for each text.

Activity icon

Replied to 'description' Of Non-object

Still hacking on other folks code without any understanding?

You should deal with the voucher in voucher_repo and test it in isolation.

Activity icon

Replied to Trying To Retrieve Corresponding Product Data When Clicking On Product

You need a route in your web.php file that can accept the slug and sends to a controller show method.

This show method retrieves the model mentioned in the slug and passes it to a view for display.

This base level of functionality should be covered in the Laravel from scratch video series. I suggest you watch this first.

(lessons completed = 0)

Nov
10
1 week ago
Activity icon

Replied to GET Request To Correspond User_id On Form Submit

ignore the user id in the route, its not helpful. You need the user_id that will be passed as part of the request query string

Your form also needs a submit button

Activity icon

Replied to Somethings Wrong With A Fresh Laravel 6 Terminal Outputs

are you a vs code user? if so, try the terminal in there

Activity icon

Replied to Somethings Wrong With A Fresh Laravel 6 Terminal Outputs

its down to the WSL terminal application being used

Activity icon

Replied to Task Scheduling Timing

just run cron every minute.

If you must run it every 5 minutes then it will run at 15:00 15:05 15:10 etc

Why not just verify this for yourself?