Coola

Coola

Member Since 4 Weeks Ago

Experience Points
280
Total
Experience

4,720 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.

Level 1
280 XP
Aug
03
6 days ago
Activity icon

Replied to Timed Sessions In Laravel 7

Anyone got any other suggestions?

Aug
02
1 week ago
Activity icon

Replied to Timed Sessions In Laravel 7

@jlrdw Thanks for the response. The solution you provided counts from the point of last activity, while I want it to be independent of that. That is the time must start from login and go on for 2 hrs say. Also the solution does not mention where I would need to add those lines of code (which file) especially since Laravel 7 uses Laravel/UI and somethings have moved around.

Aug
01
1 week ago
Activity icon

Started a new Conversation Timed Sessions In Laravel 7

Is there a way to place a timer on the user session for e.g. 2 h limit, and automatically ask the user to login again once the timer expires? This is regardless of "last activity", so the timer starts from the moment they login. Also to show a countdown clock of how many minutes left in the session?

To add: I have looked at the documentation for storing data into session, where I could possibly save the login time upon authentication. But I am not sure where to put this (and how). I could possibly then retrieve it from the session as well.

Jul
29
1 week ago
Activity icon

Replied to Laravel Use MySQL Or Firebase/NoSQL?

Thanks @martinbean. I think I will go with MySQL for the time being but maybe try Firestore in an independent project just to see if it works. I might update here on my findings if it helps others.

Jul
28
1 week ago
Activity icon

Replied to Laravel Use MySQL Or Firebase/NoSQL?

@tray2 thanks for your response. You are right it is more of a database question, but laravel and the database do go hand-in-hand. I am not just worried about performance but also maintainability and ability to expand to new data types, which is where I feel the NoSQL database would offer some advantages due to its flexibility. Thanks for the link, I will definitely check it out, I also checked out https://serversforhackers.com/laravel-perf which is a Laravel Performance course for free, so not sure how much of an overlap there is.

Jul
27
1 week ago
Activity icon

Replied to Laravel Use MySQL Or Firebase/NoSQL?

@martinbean thanks for your response. The CMS is for a laboratory so there are tables for diseases, cells, proteins, cell locations, tissues which belong to multiple types of experiments. So these tables are related to the experiments in a many-to-many relationship but the experiments themselves are of several types and hence polymorphic. Experimental data will run into 100s of thousands of rows easily and I think SQL would be great for that, but what worries me are the polymorphic relationships, e.g. there may be use cases where the scientists may need to check disease or cell data across for a specific data point on the fly. So I am not even sure if Laravel can handle manythrough queries through a many-to-many polymorphic table.

Activity icon

Replied to Laravel Use MySQL Or Firebase/NoSQL?

Such comparison sites are what confuses me, and therefore I would like to hear from anyone who actually tried both databases and what their experience was.

Jul
26
2 weeks ago
Activity icon

Started a new Conversation Laravel Use MySQL Or Firebase/NoSQL?

I am setting up a content management system in Laravel using Google Cloud Platform. This CMS will have quite a few polymorphic many-to-many relationships (at least 10) and for that reason I am considering whether I can use Firebase or other NoSQL databases with Laravel.

I know that there is a laravel-firebase package by Kreait which should allow me to use the firebase as database. My question is therefore

  1. Are there any drawbacks to using firebase with laravel, which I should be aware of?
  2. Can I possibly use a hybrid model where some data is stored in the SQL database while other is stored in firebase
  3. Or should I just stick to MySQL and create the several polymorphic many-to-many relationships?
Activity icon

Replied to Laravel On Google App Engine Standard Vs Flexible

This question was answered on Server Fault but the gist of it is that I settled for standard environment because of low usage as standard environment can wind down to 0 instances thereby tremendously reducing costs.

Jul
24
2 weeks ago
Activity icon

Started a new Conversation Laravel On Google App Engine Standard Vs Flexible

I am deploying a Laravel app (content management system) on GCP App Engine but I am not sure what are the advantages or disadvantages of standard vs flexible environment and how it would impact a Laravel application. The application will not have many users but will require to read the database and show outputs etc. Could someone please highlight differences and provide suggestions.

Jul
21
2 weeks ago
Activity icon

Replied to Laravel JSON File Search And Return Json As Ajax Call?

Thanks for a response. Is there a way in laravel to add the json to the database? How would I go about it? For example, I found this on the web https://vannstudios.com/how-to-insert-json-file-data-into-mysql-database-table-using-laravel do you think this is a good way to add the data from the json file to the database. The json file will be updated every few months.

Activity icon

Started a new Conversation Laravel JSON File Search And Return Json As Ajax Call?

I am new to laravel in general and I have run into an issue. I have data in a diseaseList.json file in the following format with over 5000 entries:

[{
	"name": "2,4-dienoyl-CoA reductase deficiency.",
	"id": "DI-04240",
	"acronym": "DECRD.",
	"definition": "A rare, autosomal recessive, inborn error of polyunsaturated fatty acids and lysine metabolism, resulting in mitochondrial dysfunction. Affected individuals have a severe encephalopathy with neurologic and metabolic abnormalities beginning in early infancy. Laboratory studies show increased C10:2 carnitine levels and hyperlysinemia.",
	"references": "MIM; 616034; phenotype. MedGen; CN037048. MeSH; D020167. MeSH; D028361."
}, {
	"name": "2-aminoadipic 2-oxoadipic aciduria.",
	"id": "DI-03673",
	"acronym": "AMOXAD.",
	"definition": "A metabolic disorder characterized by increased levels of 2-oxoadipate and 2-hydroxyadipate in the urine, and elevated 2-aminoadipate in the plasma. Patients can have mild to severe intellectual disability, muscular hypotonia, developmental delay, ataxia, and epilepsy. Most cases are asymptomatic.",
	"references": "MIM; 204750; phenotype. MedGen; C1859817. MeSH; D000592."
}, {
	"name": "3-alpha-hydroxyacyl-CoA dehydrogenase deficiency.",
	"id": "DI-00002",
	"acronym": "HADH deficiency.",
	"definition": "An autosomal recessive, metabolic disorder with various clinical presentations including hypoglycemia, hepatoencephalopathy, myopathy or cardiomyopathy, and in some cases sudden death.",
	"synonyms": "HAD deficiency. Hydroxyacyl-coenzyme A dehydrogenase deficiency. SCHAD deficiency.",
	"references": "MIM; 231530; phenotype. MedGen; C1291230. MeSH; D008659."
},
... (5000 more entries)
]

I would like to create an api for my application to be able to search this JSON data for the name and return it as a json so that I can populate a select field using javascript (select2js).

What is the best way to do this? Is it to create a controller to specifically open the json file, parse it, filter the results and return as a json? If yes how do I a go about the logic of the controller? Or is there some other method to do it which I am not aware of?

Also is it better to have this as a JSON file or should I save it to my database as MYSQL JSON datatype?