dippy

dippy

Member Since 2 Years Ago

Experience Points
1,050
Total
Experience

3,950 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-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 1
1,050 XP
Nov
28
1 month ago
Activity icon

Started a new Conversation Error: Trying To Get Property Of Non-object On /MailChannel.php

I'm getting the following error since last few days. Tried solve it by renaming all variables named $message on the Controller but no luck.

Error: Trying to get property of non-object

/vendor/laravel/framework/src/Illuminate/Notifications/Channels/MailChannel.php

At line: 92

How to solve this?

Sep
25
3 months ago
Activity icon

Replied to HtmlString Not Working

Ok. Got it. Thanks.

Activity icon

Replied to HtmlString Not Working

When I pass the $data directly I get html code in email.

Activity icon

Started a new Conversation HtmlString Not Working

I've used HtmlString as follows, but it isn't working. I neither get the html appended in email nor there is an error. What is wrong?


$data = "<table><tr><td><strong>Name</strong></td><td><strong>Phone Number</strong></td><td><strong>Email</strong></td></tr>$data_part</table>";

$mailMessage->from(env('FROM_MAIL'),env('APP_NAME'))
->subject('Data has been synced') ->greeting(sprintf('Hi %s,', '')) ->line("Data has been synced to your account.")
->line(new \Illuminate\Support\HtmlString($data));

Aug
16
5 months ago
Activity icon

Replied to Product Architecture

The access right table will help control how one can use the data upon login but I'm stuck on how to make agents view multiple accounts using his own account.

Aug
14
5 months ago
Activity icon

Replied to Product Architecture

Right now users log in with email + password.

Once agents are allowed they should be able to login with same email to multiple accounts.

Aug
13
5 months ago
Activity icon

Started a new Conversation Product Architecture

I have a product that offers a small lead management system. The architecture of product is simple so far. I have tables called 'companies', 'users', 'leads'. Users within a company have CRUD rights on leads. Now companies want their agents to have rights to operate leads. So we can ask companies to add their agent as a user within the company but there is a problem. Each user needs to have a unique email to register. So if one agent serves 5 companies they can't be added as a user by each of them. What should be the ideal way to handle this.

Thought of having separate database for each company so that problem of unique email is resolved but I'm not sure how to manage multiple databases for updates

Aug
08
5 months ago
Activity icon

Replied to Code Corruption

I changed the hard disk and things are stable since couple of days. So the problem was probably due to faulty hard disk

Aug
01
5 months ago
Activity icon

Replied to Code Corruption

Found Console/Kernel.php and Exceptions/Handler.php and a model and a controller are corrupted. Almost all views have file size different than that on server.

https://docs.google.com/document/d/1T111WO3PIj5TXUfx44sClgbd8IX0d7ePpbkMgrcLeqs/edit?usp=sharing

Activity icon

Replied to Code Corruption

I've mapped the folder on iis at port 81. So I browsed http://localhost:81 which showed me the content I shared today.

I tried few more urls and all of them showed the same.

I tried php artisan serve but no luck. Got this.

PHP Fatal error: Uncaught ReflectionException: Class App\Console\Kernel does not exist in D:\vhosts\nimit\websites\staging\vendor\laravel\framework\src\Illuminate\Containe r\Container.php:790 Stack trace: #0 D:\vhosts\nimit\websites\staging\vendor\laravel\framework\src\Illuminate\Container\Container.php(790): ReflectionClass->__construct('App\Console\Ker...') #1 D:\vhosts\nimit\websites\staging\vendor\laravel\framework\src\Illuminate\Container\Container.php(667): Illuminate\Container\Container->build('App\Console\Ker...') #2 D:\vhosts\nimit\websites\staging\vendor\laravel\framework\src\Illuminate\Container\Container.php(265): Illuminate\Container\Container->resolve('App\Console\Ker...', Ar ray, false) #3 D:\vhosts\nimit\websites\staging\vendor\laravel\framework\src\Illuminate\Container\Container.php(787): Illuminate\Container\Container->Illuminate\Container{closure}(Obj ect(Illuminate\Foundation\Application), Array) #4 D:\v in D:\vhosts\nimit\websites\staging\vendor\laravel\framework\src\Illuminate\Container\Container.php on line 790

Activity icon

Replied to Code Corruption

Hi Snapey,

I was using Notepad++. I dropped it and moved to visual studio. Infact I uninstalled it. I also disabled the auto-scan mode on windows that was scanning the drives on starting the machine. Still today I got the same issue.

All pages are showing this content

e('rgb', $pBorder->getColor()->getARGB()); $objWriter->endElement(); $objWriter->endElement(); } } /** * Write NumberFormat. * * @param XMLWriter $objWriter XML Writer * @param NumberFormat $pNumberFormat Number Format * @param int $pId Number Format identifier / private function writeNumFmt(XMLWriter $objWriter, NumberFormat $pNumberFormat, $pId = 0) { // Translate formatcode $formatCode = $pNumberFormat->getFormatCode(); // numFmt if ($formatCode !== null) { $objWriter->startElement('numFmt'); $objWriter->writeAttribute('numFmtId', ($pId + 164)); $objWriter->writeAttribute('formatCode', $formatCode); $objWriter->endElement(); } } /* * Get an array of all styles. * * @param Spreadsheet $spreadsheet * * @return \PhpOffice\PhpSpreadsheet\Style\Style[] All styles in PhpSpreadsheet / public function allStyles(Spreadsheet $spreadsheet) { return $spreadsheet->getCellXfCollection(); } /* * Get an array of all conditional styles. * * @param Spreadsheet $spreadsheet * * @return Conditional[] All conditional styles in PhpSpreadsheet / public function allConditionalStyles(Spreadsheet $spreadsheet) { // Get an array of all styles $aStyles = []; $sheetCount = $spreadsheet->getSheetCount(); for ($i = 0; $i < $sheetCount; ++$i) { foreach ($spreadsheet->getSheet($i)->getConditionalStylesCollection() as $conditionalStyles) { foreach ($conditionalStyles as $conditionalStyle) { $aStyles[] = $conditionalStyle; } } } return $aStyles; } /* * Get an array of all fills. * * @param Spreadsheet $spreadsheet * * @return Fill[] All fills in PhpSpreadsheet / public function allFills(Spreadsheet $spreadsheet) { // Get an array of unique fills $aFills = []; // Two first fills are predefined $fill0 = new Fill(); $fill0->setFillType(Fill::FILL_NONE); $aFills[] = $fill0; $fill1 = new Fill(); $fill1->setFillType(Fill::FILL_PATTERN_GRAY125); $aFills[] = $fill1; // The remaining fills $aStyles = $this->allStyles($spreadsheet); /* @var \PhpOffice\PhpSpreadsheet\Style\Style $style / foreach ($aStyles as $style) { if (!isset($aFills[$style->getFill()->getHashCode()])) { $aFills[$style->getFill()->getHashCode()] = $style->getFill(); } } return $aFills; } /* * Get an array of all fonts. * * @param Spreadsheet $spreadsheet * * @return Font[] All fonts in PhpSpreadsheet / public function allFonts(Spreadsheet $spreadsheet) { // Get an array of unique fonts $aFonts = []; $aStyles = $this->allStyles($spreadsheet); /* @var \PhpOffice\PhpSpreadsheet\Style\Style $style / foreach ($aStyles as $style) { if (!isset($aFonts[$style->getFont()->getHashCode()])) { $aFonts[$style->getFont()->getHashCode()] = $style->getFont(); } } return $aFonts; } /* * Get an array of all borders. * * @param Spreadsheet $spreadsheet * * @return Borders[] All borders in PhpSpreadsheet / public function allBorders(Spreadsheet $spreadsheet) { // Get an array of unique borders $aBorders = []; $aStyles = $this->allStyles($spreadsheet); /* @var \PhpOffice\PhpSpreadsheet\Style\Style $style / foreach ($aStyles as $style) { if (!isset($aBorders[$style->getBorders()->getHashCode()])) { $aBorders[$style->getBorders()->getHashCode()] = $style->getBorders(); } } return $aBorders; } /* * Get an array of all number formats. * * @param Spreadsheet $spreadsheet * * @return NumberFormat[] All number formats in

Jul
31
5 months ago
Activity icon

Replied to Code Corruption

Hi

I've got my computer formatted. Scanned it with anti-virus software again and found it clean. But still facing same issue. Every day when I start working, I get corrupted files and have to take a clone and restart. I'm using windows 10 and it often goes for disk scanning when machine is booted.