albusSeverus

albusSeverus

Member Since 2 Years Ago

Mumbai

Applications Developer at AAPM

Experience Points 3,010
Experience Level 1

1,990 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 27
Lessons
Completed
Best Reply Awards 0
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.

19 Jun
4 weeks ago

albusSeverus left a reply on Calling Repository Method In Command Handle() To Execute Mail()

Also tried :

public function handle(OpeningRepository $opening_repo, UserRepository $repository)
    {
        //
        $data = $repository->findAllApplicantsOptIn()->implode(',');
        $openings = $opening_repo->findAll();

        foreach(explode(',', $data) as $to) {
            Mail::to($to)
                ->bcc('[email protected]')
                ->send(new WeeklyUpdatesApplicant($openings, $data));
        }
    }

albusSeverus started a new conversation Calling Repository Method In Command Handle() To Execute Mail()

Im trying to execute a task scheduler to mail a list of users when condition is satisfied at a given date and time.

Problem Im facing is calling the repository method to fetch the list of users to mail to and pass the information in the email from another model.

Command File: '''

04 Jun
1 month ago

albusSeverus left a reply on Laravel 5.6 Request->file Returns Null And Cannot Store Files

Solved my problem as well for file upload on edit form.

Thanks.

21 May
1 month ago

albusSeverus left a reply on Setting SoapHeader With Guzzle??

use GuzzleHttp\Exception\GuzzleException;
use GuzzleHttp\Client;

        $client = new Client(); 
        $baseURL = "https://ams.aapm.org/xweb/secure/netForumXML.asmx?WSDL";
        $result = $client->request('GET', $baseURL, [
            'Authenticate' => [
                'userName' => $userName, 
                'password' => $password
            ],
            'body' => $xmlRequest,
            'headers' => [
                "Content-Type" => "text/xml; charset=utf-8"
            ]

        ]);
        dd($result);
09 May
2 months ago

albusSeverus left a reply on Passing Data Object From Blade To Modal In Laravel

@bekaskaki Since its an active project, I can only share so much.

''' public function listOpenings(Request $request, OpeningRepository $repository, BookmarkRepository $bookmarkRepo, OpeningApplicationRepository $openingApplRepo) { $user = $request->user(); $openings = $repository->findAll(); $bookmarks = $bookmarkRepo->findByUser($user->id, 'opening'); $applied = $openingApplRepo->findByUser($user->id);

    return view('applicants.bookmarks.openings', compact('openings', 'bookmarks', 'applied'));
}

'''

albusSeverus left a reply on Passing Data Object From Blade To Modal In Laravel

No replies ? wow.. can anyone atleast suggest any alternative method to this ?

07 May
2 months ago

albusSeverus started a new conversation Passing Data Object From Blade To Modal In Laravel

Im pulling multiple data objects from controller to the blade template and then passing that information to each modal popup for further user interaction, I do have some conditional checking.

Problem is how do I pass my object to the modal directly and do the conditional formatting?

Modal Code

@foreach ($applied as $user_applied) @if($user_applied->opening_id == $opening->id) Applied @else Apply @endif @endforeach Close

Controller Code

$applied = $opening_repo->findByUser($user->id); return view('applicants.bookmarks.openings', compact('openings', 'bookmarks', 'applied'));

View Code

@each('applicants.bookmarks.opening-modal', $openings, 'opening')

06 May
2 months ago

albusSeverus left a reply on How Can I Create Events In Google Calendar Using Spatie Google Calendar Package

As the documentation says, it's an event. So basically on the page loading your google calendar will have a trigger for calling the event. I would do a javascript trigger to that event.

Events you can create here:

  1. Create Calendar event
  2. Edit/Update event (provide id parameter to the event trigger)
  3. Delete event (provide id parameter to the event trigger)

Rest of the information can be passed from your form for google calendar or your own input form

Pass that information to the controller, controller method triggers the event functionality, which will generate your event. On success/error you can display message.

Update calendar view on successful event registration.

Just a broad view of how I would have done it.

Check Laravel Documentation for more info on events: https://laravel.com/docs/5.8/events#generating-events-and-listeners

albusSeverus left a reply on Staging Set Up Best Practices?

@MIKEHOPLEY - This is similar to what I have, can you share the details on the server setup for staging and production, like how is the folder structure or mapping or any other information. Sorry if I sound a lil noob, new to Laravel world. I have Linux AWS for both staging and production and will be launching my web app soon.

Right now I have the git/bitbucket setup with develop and master branches and also me and my colleague use module based branches to push our changes and then merge it with dev.

Then the dev is pushed to staging for further testing and evaluation by the program director or other people.

I also want to have other websites(vanilla php/web-app) on that same staging server, hence my question for how do I configure my servers.

Thanks in advance for the help.

30 Apr
2 months ago

albusSeverus left a reply on Check Encrypted File On File Uploads

@TRAY2 - Thanks. Yeah something like this, but using the Laravel functions. Will try to create something from this.

29 Apr
2 months ago

albusSeverus left a reply on Check Encrypted File On File Uploads

@TRAY2 - Im referring to the pdf file uploads with password protection or some other form of encryption. E.g. like uploading resume or transcript pdf but locked by password protection. How do I detect and prevent those ?

albusSeverus started a new conversation Check Encrypted File On File Uploads

Hi all,

I have a script which uploads file and checks for file size and type(pdf only) for my web-app, saves it the folder, saves path in the dbase.

My question: How do I check if the file uploaded by the user is encrypted or password protected and prevent that?

My Laravel knowledge: basic, can get things done.

16 Apr
1 year ago

albusSeverus left a reply on Laravel Subfolder Installation

@spekkionu thanks I was thinking something similar.

@jlrdw Will definitely look into it. Though to be honest I dont know if I can pull this off without making more mess. Thanks.

albusSeverus started a new conversation Laravel Subfolder Installation

Hi, Im new to Laravel and still trying to figure my way out so please excuse the noob lang.

I have a Laravel Application running on a EC2 ubuntu server on the root level and I wanted to create another project in a subfolder to test and run the application.

Question: Will installing a Laravel project within a subfolder of that same server, impact my root application in any way?

If No, how do I proceed with that? Any suggestions.

Thanks.

10 Oct
1 year ago

albusSeverus left a reply on Getting ReCAPTCHA To Work

Hi, Im stuck at the same point as the person trying to ask this question. Was working fine and then my hdd crashed and reinstalled everything. After bringing everything back to life on local, captcha stopped working. Tried deleting the .env file and recreating, cleared the cache and other parameters. Still not able to figure out why? The app runs fine but if I tried to dd() any env variables, it returns null. In short, the .env file is not read. Please suggest me a solution for this issue.