CarlEOgden

Member Since 1 Year Ago

Experience Points
2,410
Total
Experience

2,590 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
0
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your 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-in-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 Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist 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.

  • Community Pillar

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

Level 1
2,410 XP
Jun
07
5 days ago
Activity icon

Replied to Show A Single Button In A V-for

@bugsysha the problem is, my blade is split into templates, the main template has the main js code and has the array of data that is displayed.

I then have a sub template that I pass that array to and that template displays the array (a list of contacts). Whilst I can then enable or disable (true/false) one of the variables, I can't manipulate any variables in the main template to show a button (or hide a button) to then email only the chosen contacts.

If I read through the array, it will display x amount of "Email selected", I only want 1 to show.

Alternatively, I could display a link on each line to send an email, but this would be time consuming to do this on x amount of contacts - but, it will allow me to email which is better than I have at the moment

Regards Carl.

Jun
04
1 week ago
Activity icon

Replied to Show A Single Button In A V-for

Hi

Thanks for the suggestions, none work in my case. I need the v-for to break in the loop but that doesn't seem to exist!

Cheers Carl.

Activity icon

Started a new Conversation Show A Single Button In A V-for

Hi

I will try to explain this as best I can.

In my app I have a screen that has some appointments, to show the appointments they display in a template blade, in the data I have a bool set to false called "sendEmail".

In the blade I have a checkbox that reads "Send email to this contact"

When I click the checkbox in the main blade I want to show a button that reads "Send email"

To display the button (it's text at the moment) I have

<div class="row" v-for="(viewing, index) in group.items">
	<div class="row ml-5 mb-5" v-if="viewing.sendEmail">Email selected</div>
</div>

As you can guess, if I have 5 entries and each of the 5 entries as their checkboxes ticked, I see "Email selected" multiple times.

Any ideas of how I can display only 1?

Cheers in advance Carl.

May
05
1 month ago
Activity icon

Started a new Conversation Outlook Calendar Integration

Hi

We have a laravel system where our various clients log in and create appointments, currently we allow the download and/or emailing of the .ics file to integrate with their Outlook (or Gmail).

However, we would like to be able to simply do an api call and write, edit or delete the appointment directly onto their calendar.

As I am quite new to Laravel/PHP I've not found a solution, whilst I am away googling, have any of you guys done this and if so, what and how did you do it?

Many thanks for any help given in advance.

Regards Carl.

Dec
24
5 months ago
Activity icon

Replied to Microsoft Graph API / Onedrive

Using Fiddler to create and send the request to obtain a token, the response returned is that there was an error with the client not logging in.

I think my issue is now that I need to to work without logging in and suspect that the api definition is incorrectly setup in portal.azure.com

Back to head scratching in that horrendous azure system.

Carl.

Activity icon

Started a new Conversation Microsoft Graph API / Onedrive

Hi

I've got a vanilla installation of Laravel 8 on my laptop and have added the microsoft/microsoft-graph installed (https://packagist.org/packages/microsoft/microsoft-graph).

When I now click a button called Onedrive, i do the following:-

$guzzle = new \GuzzleHttp\Client();
$url = 'https://login.microsoftonline.com/' . $tenantId . '/oauth2/token?api-version=1.0';
$token = json_decode($guzzle->post($url, [
    'form_params' => [
        'client_id' => $clientId,
        'client_secret' => $clientSecret,
        'resource' => 'https://graph.microsoft.com/',
        'grant_type' => 'client_credentials',
    ],
])->getBody()->getContents());
$accessToken = $token->access_token;

I've added my tentantId, clientId, clientSecret but then when I do:-

        $graph = new Graph();
        $graph->setAccessToken($accessToken);

        $user = $graph->createRequest("GET", "/me")
                      ->setReturnType(Model\User::class)
                      ->execute();

I get a 403 forbidden so I can take it that the access token doesn't work!

And to prove that, if I use Microsoft Graph API Explorer and then login as me, run it and copy/paste the access token used in explorer and put that in my code above, I get what I need!

My questions are:-

To use the Microsoft Graph API, do I need to log every time I run my laravel system (as the examples if you create it from the microsoft pages).

Any idea of what I've not set correctly within the API creation within azure (to be honest, the whole thing is complicated as hell to me!)

I have a website that has many organisations that log in and enter data, we have google drive and dropbox configured so that it works seemlessly and want the same to add onedrive integration. This is so we can create and save documents and pdf's into the clients own dropbox/google drive area.

What I want to be able to do, is store tenantId/clientId/clientSecret (and anything else if I am missing anything) to give seamless access and not have to do a microsoft login.

Hope I've managed to explain my issue without too much confusion!

Seasons greetings Carl.

Dec
18
5 months ago
Activity icon

Awarded Best Reply on Mail/SwiftMail Replaces & For &amp;

Found the issue, when we removed html text from the html_content to then store in a variable for markdown, it had the &, we just str_replace that for the & , issue fixed!

Activity icon

Replied to Mail/SwiftMail Replaces & For &amp;

Found the issue, when we removed html text from the html_content to then store in a variable for markdown, it had the &, we just str_replace that for the & , issue fixed!

Activity icon

Started a new Conversation Mail/SwiftMail Replaces & For &amp;

Hi

When I build an email to send via Mail, the programmer before me set up a controller to build the content on the email, it seems to be 2 parts, a template that contains:-

Hi {Title} {Surname},

Please find attached

Which is stored in variable $this->html_content

Then, more data is built into a variable called table_data that is then attached to the email.

When the email is sent, I get in my inbox an email that reads:-

Hi Mr &amp; Mrs Smith,

Please find attached

BUT, the & in the table_data are displayed correctly, I've tried converting & to all known combinations for just the & to be shown but not succeeded.

Anyone got an ideas of how to get round this issue (other than replacing & for "and"?

Cheers in advance Carl.

Activity icon

Replied to Laravel Validation Doesn't Work As It Suppose.

@obink

You could try:-

'quantities' => 'required|numeric',

That should work!

Regards Carl.

Dec
17
5 months ago
Activity icon

Started a new Conversation Hide A Html Button When Clicked

Hi

I've a really simple form that basically does:-

<form class="form" action="{{ route('letter::send') }}" method="post" autocomplete="off">
	<div class="form__actions">
		<button type="submit" class="button">Create</button>
	</div>
</form>

How can I either hide or disable the button once clicked, without affecting the form action and going doing its stuff!

Thanks in advance Carl.

Dec
08
6 months ago
Activity icon

Started a new Conversation Can't See Variable Contents In Inspect/network

Hi

I've a button that is activated by Vuejs to place an order on my system, when i click the button, it calls the Vuejs routine, passes the variables to the php routine to store that information via an axios push call, which is working fine.

When I then open the inspect panel, click on Place order, my routine crashes, when I then click on the preview, all I see is:-

array:1 [
  "e" => Illuminate\Database\QueryException {#1119}
]

For some reason, I can't seen any of the information, before last week, I definitely could, so am wondering if either I've changed something (no idea what) or something has changed elsewhere!

If I now put a dd in my code, I can see:-

array:31 [
  "request" => Illuminate\Http\Request {#43}
  "branch" => {#1099}
  "response" => []
  "landmark_api" => ""
  "landmark_account_id" => ""
  "landmark_client_id" => ""
  "landmark_client_secret" => ""
  "contact_id" => "9225f2fc-a192-4ccb-af83-2a7342535e9f"
  "main_contact" => {#861}
  "contacts" => array:2 []
  "ch" => Closed resource @11

I thought that I should be able t see the sub variables within those like 'contacts' as it's an array of 2 items. request should also allow me to view the sub variables of that!!

Does anybody know what I've done and now to resolve it?

Regards Carl.