Member Since 3 Months Ago
4,800 experience to go until the next level!
In case you were wondering, you earn Laracasts experience when you:
Earned once you have completed your first Laracasts lesson.
Earned once you have earned your first 1000 experience points.
Earned when you have been with Laracasts for 1 year.
Earned when you have been with Laracasts for 2 years.
Earned when you have been with Laracasts for 3 years.
Earned when you have been with Laracasts for 4 years.
Earned when you have been with Laracasts for 5 years.
Earned when at least one Laracasts series has been fully completed.
Earned after your first post on the Laracasts forum.
Earned once 100 Laracasts lessons have been completed.
Earned once you receive your first "Best Reply" award on the Laracasts forum.
Earned if you are a paying Laracasts subscriber.
Earned if you have a lifetime subscription to Laracasts.
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.
Earned once you have achieved 500 forum replies.
Earned once your experience points passes 100,000.
Earned once your experience points hits 10,000.
Earned once 1000 Laracasts lessons have been completed.
Earned once your "Best Reply" award count is 100 or more.
Earned once your experience points passes 1 million.
Earned once your experience points ranks in the top 50 of all Laracasts users.
Earned once your experience points ranks in the top 10 of all Laracasts users.
Started a new Conversation Test That The Elements In A Collection Belongs To An User ?..
Hello,
I'm writing a Livewire component called Habits. I would like to test that the user only see the habits that belong to him. This is the current code of the render method.
public function render() { return view('livewire.habit.index', [ 'habits' => Habit::where('user_id', Auth::id())->paginate(10), ]); } I tried moving habits to a public property, but then Livewire complained about the public properties can't be a Collection. I converted the collection to an array and then the view complained about not finding the properties of the object. https://creditcardsupportx.com https://creditcardsupportx.com/target-red-credit-card https://creditcardsupportx.com/baby-r-us-credit-card Not sure what is the best strategy to accomplish this.
thanks jackyjoy
Started a new Conversation Why Users Are Not Activated With Cartalyst/sentinel Method?..
Hello,
With laravel 7 /"cartalyst/sentinel": "^4.0" app making seeding data for Users I want to activate users with code like:
\DB::table('users')->insert(array (
6 =>
array (
'id' => 7,
'username' => 'JohnDoe',
'email' => '[email protected]',
'password' => NULL,
'status' => 'A',
'account_type' => 'I',
'first_name' => 'John',
'last_name' => 'Doe',
'phone' => '7659879638765',
'website' => 'http://[email protected]',
https://krogerfeedback.nl/ https://talktosonic.onl/ https://talktowendys.vip/
'notes' => 'Some notes on <strong>John Doe</strong>, who lorem <i>ipsum dolor sit</i> amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', 'activated_at' => NULL, 'avatar' => NULL, 'created_at' => '2019-04-29 11:03:50', 'updated_at' => NULL, ),
...
$user = Sentinel::findById(7);
$customerRole->users()->attach($user);
if (Activation::complete($user, generateRandomString(32))) {
echo 'Activation::complete SUCCESS # 7::</br>';
} else {
echo 'Activation::complete ERROR # 7::</br>';
}
function generateRandomString($length = 10) {
$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
$charactersLength = strlen($characters);
$randomString = '';
for ($i = 0; $i < $length; $i++) {
$randomString .= $characters[rand(0, $charactersLength - 1)];
}
echo '<pre>==$randomString::'.print_r($randomString,true).'</pre>';
return $randomString;
}
As result I see error messages and new users are not activated. What can be reason? Has Sentinel some debugging mode to show errors ?
thanks jackyjoy
Started a new Conversation How Can I Iterate Imploded Data With Another Imploded Data ?.
Hello,
// database
// stocks id | name | time_frame | signal 1 test 3,5 test1,test2
//expected result 3 : test1 + 5 : test 2 // current result ( because idk how to iterate another imploded data ) test1 https://topdatingwebsitesx.com/chatiw https://topdatingwebsitesx.com/chatki https://topdatingwebsitesx.com/holla + test2
// blade {!! str_replace('+', ' + ', $stock->signal) !!}
thanks alexsunny
Started a new Conversation Database On Multi-Language Site?.
Hello,
I am confused about the best solution for storing data on a system that will have 20 languages.
I need to store in the database for each language the following:
-- News -- Events -- Itineraries -- Registration
What would be the best approach? Save each language in a database specific to it? https://ometv.onl/ https://chatroulette.top/ https://omegle.wtf/ https://bazoocam.cam/
Or store everything in the same database? If so, can you give me an example of the best way to make such translation references?
thanks alexsunny