Skip to content

Commit

Permalink
Add some Helper code
Browse files Browse the repository at this point in the history
  • Loading branch information
maryamshm authored May 7, 2023
1 parent 6fc17af commit 1ef4410
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,12 @@ return redirect()->route('route.name');
// ایجاد یک نمونه از صحت‌سنج
$validator = validator($data, $rules, $messages);
// تبدیل یک رشته به فرمت snake_case
Str::of('maryamShm')->snake(); --> maryam_shm
// مرتب کردن آرایه به صورت نزولی
Arr::sortDesc($array);
// ایجاد یک نمونه از یک ویو
return view('auth.login');"
style="margin-top: 30px" class="language-php"
Expand Down Expand Up @@ -714,4 +720,4 @@ export default {
<style lang="scss">
@import './assets/lib/highlightjs/styles/github-dark.min.css';
@import './assets/styles/app.scss';
</style>
</style>

0 comments on commit 1ef4410

Please sign in to comment.