Martha

Martha

Member Since 3 Years Ago

Experience Points 6,630
Experience Level 2

3,370 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 52
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.

07 Oct
9 months ago

Martha started a new conversation Material For Codeception

Are there any good codeception materials with yii2 ? I didnot understand codeception documentation so much . Thanks for your suggestions.

05 Nov
1 year ago

Martha started a new conversation Laravel Pagination

I used laravel pagination so many times , I want to understand how it works and how far it's efficient . Thanks in advance

19 Jul
2 years ago

Martha started a new conversation Rollback Database Record

Hi Laracasters , I want to know if there an ability , to rollback last database record when another insertion query isnot done .

I am building payment module for booking room. my logic as follows : 1- update payment table for this user if ( 1 success ) 2- update room record as reserved if ( 2 success ) 3- get credit from user with third part (Auth.NET) if ( 3 success ) return "process complete" if ( 3 fail ) rollback 2 and 1

28 Jun
2 years ago

Martha started a new conversation Global Variable In Api Service

How can I set global variables like "user time zone" while it's api . I know in not api laravel I can use session for this , but in api project , how can I set and get global variables ?

02 Jun
2 years ago

Martha left a reply on Blade Pagination With Api Web Service

https://gist.github.com/tobysteward/6163902 this is the best solution In ajax but not has the headache for writing html inside ajax

23 May
2 years ago

Martha left a reply on Compare Timestamp In Database

it worked for me now . My problem was using $start and $end as strings with where or using $start and $end as Datetime objects with whereDate

while whereDate compares with date variable in string but where compares with Datetime object not string

22 May
2 years ago

Martha started a new conversation Compare Timestamp In Database

I have an attribute in database with type "datetime " format ('Y-m-d H:i:s') I want to get all raws from db between specific interval between two timestamps $start='Y1-m1-d1 H1:i1:s1'; $end='Y2-m2-d2 H2:i2:s2';

what is the proper query to get the data I want ?

Thanks

09 May
2 years ago

Martha started a new conversation How Can I Check If Modal Relation Is Null ?

sometimes the relation between models is null , how can I check this for example : users have different types like typeA , typeB and typeC and users table has relation with those tables typeA , typeB and typeC

how can I check what is relation this object of user has without accessing it like that: $user->typeA

Thanks

08 May
2 years ago

Martha left a reply on Datetimepicker In Dynamic Modal

@jackthedev how can I do that ?

02 May
2 years ago

Martha left a reply on Datetimepicker In Dynamic Modal

I tried to print message in log and it has been showed but still this $('#datepicker').datepicker(); not working !!

30 Apr
2 years ago

Martha left a reply on Datetimepicker In Dynamic Modal

yes that's exactly what I did , but still not working !!

Martha left a reply on Datetimepicker In Dynamic Modal

the modal is dynamic , I tried this but it didnot work

Martha started a new conversation Datetimepicker In Dynamic Modal

I want to show the datetimepicker in bootstrap when user select input shown in bootstrap modal . This modal is dynamic and generated within a loop .

10 Apr
2 years ago

Martha started a new conversation Blade Pagination With Api Web Service

how can I blade the pagination in laravel where data is returned in json format like this: { "total": 3, "per_page": 20, "current_page": 1, "last_page": 1, "from": 1, "to": 3, "data": [ { data data data } } Is there a way other than ajax ?

09 Apr
2 years ago

Martha left a reply on Load Data In Foreach Loop With A Jquery Modal

@bobbybouwmann Thanks for this answer , it worked with me .but when my modal inside foreach has table . The page layout is not displayed properly .

05 Apr
2 years ago

Martha started a new conversation Authentication With Apis

what is the best framework for authentication that I can use with laravel for now ? as I am using JWTauth , there is bug in handling its exceptions . Thanks

27 Mar
2 years ago

Martha started a new conversation Why Many Say That PHP Is Not An Actual Programming Language

why there are many who say that PHP is not an a real programming language ? I do not really get what they mean by that .

26 Mar
2 years ago

Martha left a reply on ReflectionException In Container.php, Class Not Found?

it worked with me after I run "composer update"

17 Mar
2 years ago

Martha started a new conversation Command Laravel Is Not Defined : Php 545

I am trying to deploy laravel 5.4 on amazon server after using this command "composer create-project --prefer-dist laravel/laravel myproject" and setting my virtual host I got this error in my laravel project log file Command laravel is not defined : php 545

22 Feb
2 years ago

Martha left a reply on Web Page Code Optimized And Clean

I am using windows and apache , I think I should work on ubuntu if I like to run something like page speed on my local machine , what do you think ?

Martha left a reply on Web Page Code Optimized And Clean

can I use them locally ?

21 Feb
2 years ago

Martha left a reply on Web Page Code Optimized And Clean

is there a tool to find unused files not the code ?

19 Feb
2 years ago

Martha left a reply on Web Page Code Optimized And Clean

I will give them a try , Thanks

Martha started a new conversation Web Page Code Optimized And Clean

I just know that there is chrome tool (audit) to know the unused css files in webpage , is there alike tool for javascript ? what other tools used to give hints and analytics for optimizing , clean and make page load faster ?

Thanks

12 Feb
2 years ago

Martha left a reply on After Payment Return To My Website With The Same Authorized User

yes thanks SaeedPrez (Y) There were session::flush before route redirection

Martha left a reply on After Payment Return To My Website With The Same Authorized User

thanks , but can I use something like auth::login() in laravel with the redirect url instead of auto redirect in paypal ?

Martha started a new conversation After Payment Return To My Website With The Same Authorized User

how can I redirect user to my website after he paid with paypal , and also still logged on my website ?

10 Jan
2 years ago

Martha left a reply on "The Laracasts Snippet" - New Podcast

That's exactly I wanted for my career as a podcast , just listened to the last 4 ones Good Job (Y), Thanks .

01 Jan
2 years ago

Martha started a new conversation Send Emails Notifications Triggering By Time

What is the best practice to send emails notifications triggering by time and how to do so ? Thanks

07 Sep
2 years ago

Martha left a reply on Database Engines With Laravel

@TadasPaplauskas your comment is really valuable @gregrobson the wikivs link is really helpful Thank you guys (Y)

06 Sep
2 years ago

Martha left a reply on Database Engines With Laravel

according to what I read I think that MySQL or PostegreSQL is the best for me as , my application is more like e-learning website , so there is student , teachers , courses... etc , relations between them . if I want to use database producers instead writing "sql queries" in my laravel code , which is better ( MySQL or PostegreSQL) in that now ? Thanks a lot guys (Y)

Martha left a reply on Database Engines With Laravel

thanks @RomainLanz I am listening it

Martha left a reply on Database Engines With Laravel

@tisuchi I am confused by last link because is it MongoDB a different DB engine from the ones that Laravel support ? I am a beginner in DB engine field . @Hamelraj I am already using MySql now and it's good but is it the best for my project ?

Martha left a reply on Database Engines With Laravel

thanks @tisuchi I know that it depends on my project type , but are there any guidelines to choose between them ?

Martha started a new conversation Database Engines With Laravel

what are the database engines I can use with laravel 5 and later? also what is the criteria I would use to choose the best engine for my project ?

23 Jul
2 years ago

Martha left a reply on The Best Way To Save Authorized User Data Without Using Session

when user login Session::put('score', $score); before my pop up template (other template page -test template)

Martha left a reply on The Best Way To Save Authorized User Data Without Using Session

ok , the user score is working perfectly in header with session solution , but as the same time within the pop up I told you about "result pop up" sometimes it keep increasing the last score (before updating) to ... infinity (non stop ) ?!

Martha left a reply on The Best Way To Save Authorized User Data Without Using Session

@d3xt3r Databse structure is user table that has current score attribute , this score is updated when user pass certain tests . required is : in front end after user passing the test show him the result in pop up as follow : his last score increased to be the new score

Martha left a reply on The Best Way To Save Authorized User Data Without Using Session

@d3xt3r thanks, may you give me more hints or keywords how to implement yours suggested solution .

21 Jul
2 years ago

Martha started a new conversation The Best Way To Save Authorized User Data Without Using Session

Hello larafans :D

I am using session to save login user data such as (name , picture , score,..etc) , so there are some user data like score updating while user login.

I want to know the best way to save and track user data but under those conditions: 1- without using sessions , it work fine but when score updated sometimes (not all) it makes a critical bug beside I read it's not the best thing to use sessions. 2- without having to call server (database) each time I want those user data as those data is needed for almost all website pages , so it will be so bad performance.

so what is the best way to save user profile data if my structure for website : 1- standalone laravel project for api 2- standalone laravel project for front end

Thanks

28 Apr
3 years ago

Martha left a reply on Send Mail Localhost And Online

Now it works fine , it seems I should wait for 2 to 5 minutes !!! Thanks all

Martha left a reply on Send Mail Localhost And Online

The problem was in cachng my .env file . I need to run this command "php artisan config:cache" but it still doesnt send emails even there is not any error !

Martha left a reply on Send Mail Localhost And Online

thanks @moharrum
the only thing that worked localhost was with gmail , but now I am stuck on online configuration as I donot want also to use gmail account . it return this error Expected response code 250 but got code "530", with message "530 5.7.1 Authentication required\r\n\

27 Apr
3 years ago

Martha started a new conversation Send Mail Localhost And Online

I am trying to send email using Mail::send( ) on my localhost "xampp", it works fine as I choose "log" as driver , but when I choose "mail" as driver , it doesnot throw any exceptions and it doesnot work too , when I use any other drivers it throws different exception . I modified my php.ini and sendmail.ini for my xampp , and it still sending nothing with "mail " driver . here is my 2 questions : 1- does it means my code is right , it just doesnot work on my localhost as it works with "log" driver. 2- when I upload it online what config in ".env" I need to change. thanks

16 Mar
3 years ago

Martha left a reply on Is There A Bug With Laravel Input::files

Make sure to add this 'enctype'='multipart/form-data' in form html beside this 'files' ='true' like this {{ Form::open( array('route' => 'Ur route', 'files' => true, 'enctype'=>'multipart/form-data')) }}

if you want to catch more than 1 file in html it's name should be something like this and not forget the empty brackets . and for laravel controller you retrieve files by: Input::file('my_images') without [ ] .