├── .eslintrc.cjs ├── .github └── workflows │ └── main.yml ├── .gitignore ├── CNAME ├── LICENSE ├── README.md ├── components.json ├── cover.jpg ├── dist ├── CNAME ├── assets │ ├── Estedad-Light-Db7xcm9_.woff2 │ ├── Estedad-Medium-0okfNhwJ.woff2 │ ├── icomoon-Brh8lNgu.svg │ ├── index-Bnm5Wat6.css │ └── index-DdTshxAL.js ├── favicon.ico └── index.html ├── index.html ├── package-lock.json ├── package.json ├── postcss.config.js ├── public ├── CNAME └── favicon.ico ├── src ├── App.jsx ├── assets │ ├── fonts │ │ ├── Estedad │ │ │ ├── Estedad-Bold.woff2 │ │ │ ├── Estedad-Light.woff2 │ │ │ ├── Estedad-Medium.woff2 │ │ │ └── Estedad-Regular.woff2 │ │ └── Icomoon │ │ │ ├── fonts │ │ │ ├── icomoon.eot │ │ │ ├── icomoon.svg │ │ │ ├── icomoon.ttf │ │ │ └── icomoon.woff │ │ │ └── style.css │ └── styles │ │ └── index.scss ├── components │ ├── Codeblock.jsx │ ├── DescriptiveCodeTable.jsx │ ├── Footer.jsx │ ├── Header.jsx │ ├── MasonryItem.jsx │ ├── SearchInput.jsx │ ├── Table.jsx │ ├── TableRow.jsx │ ├── TableRowItem.jsx │ └── ui │ │ └── accordion.jsx ├── lib │ ├── highlightjs │ │ └── styles │ │ │ └── github-dark.min.css │ └── utils.jsx ├── main.jsx └── pages │ └── Home.jsx ├── tailwind.config.js ├── tsconfig.json └── vite.config.js /.eslintrc.cjs: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | env: { browser: true, es2020: true }, 4 | extends: [ 5 | 'eslint:recommended', 6 | 'plugin:react/recommended', 7 | 'plugin:react/jsx-runtime', 8 | 'plugin:react-hooks/recommended', 9 | ], 10 | ignorePatterns: ['dist', '.eslintrc.cjs'], 11 | parserOptions: { ecmaVersion: 'latest', sourceType: 'module' }, 12 | settings: { react: { version: '18.2' } }, 13 | plugins: ['react-refresh'], 14 | rules: { 15 | 'react/jsx-no-target-blank': 'off', 16 | 'react-refresh/only-export-components': [ 17 | 'warn', 18 | { allowConstantExport: true }, 19 | ], 20 | }, 21 | } 22 | -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | name: Build and Deploy React App to gh-pages 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | 8 | jobs: 9 | build-and-deploy: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - name: Checkout Repository 13 | uses: actions/checkout@v2 14 | 15 | - name: Install Node.js 16 | uses: actions/setup-node@v2 17 | with: 18 | node-version: '14' 19 | 20 | - name: Install Dependencies 21 | run: npm install 22 | 23 | - name: Build React App 24 | run: npm run build 25 | 26 | - name: Deploy to gh-pages 27 | uses: peaceiris/actions-gh-pages@v3 28 | with: 29 | github_token: ${{ secrets.GITHUB_TOKEN }} 30 | publish_dir: ./dist 31 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | 4 | 5 | # local env files 6 | .env.local 7 | .env.*.local 8 | 9 | # Log files 10 | npm-debug.log* 11 | yarn-debug.log* 12 | yarn-error.log* 13 | pnpm-debug.log* 14 | 15 | # Editor directories and files 16 | .idea 17 | .vscode 18 | *.suo 19 | *.ntvs* 20 | *.njsproj 21 | *.sln 22 | *.sw? 23 | -------------------------------------------------------------------------------- /CNAME: -------------------------------------------------------------------------------- 1 | laravelguide.ir -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |
2 | راهنمای فارسی لاراول 3 |
4 | 5 |

⭕️ راهنمای فارسی لاراول

6 | 7 |

پروژه راهنمای لاراول، با هدف جمع‌آوری دستورات پرکاربرد لاراول سعی دارد پروسه توسعه پروژه را آسان‌تر کند و باعث کم‌تر شدن اتلاف وقت می‌شود.

8 | 9 |
10 | 11 |

🔰 بخش‌های مختلف پروژه

12 | 22 | 23 | 24 |
25 |

⭕️ قالب مورد استفاده

26 | - https://github.com/MahdiyarGHD/CheatSheetTemplate/ 27 |
28 |
29 |

🤝 مشارکت

30 |

این پروژه تحت پروانه GPL نسخه 3 منتشر و نگه‌داری می‌شود و از این‌جهت، هرکسی می‌تواند در صورت نیاز اقدام به مشارکت برای اصلاح یا بهبود یا حتی اضافه‌کردن ویژگی‌های جدید به این پروژه کند، همچنین ایجاد فورک‌های مختلف از پروژه و توسعه پروژه در شاخه‌ای جدا، چه به‌صورت رایگان و چه به‌صورت تجاری، هیچ‌گونه مانعی ندارد.

31 | -------------------------------------------------------------------------------- /components.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://ui.shadcn.com/schema.json", 3 | "style": "default", 4 | "rsc": false, 5 | "tsx": false, 6 | "tailwind": { 7 | "config": "tailwind.config.js", 8 | "css": "src/assets/styles/index.scss", 9 | "baseColor": "slate", 10 | "cssVariables": true, 11 | "prefix": "" 12 | }, 13 | "aliases": { 14 | "components": "@/components", 15 | "utils": "@/lib/utils" 16 | } 17 | } -------------------------------------------------------------------------------- /cover.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MahdiyarGHD/laravel-cheat-sheet/f8980ac87ba3cac177a873ed8209915c45c59188/cover.jpg -------------------------------------------------------------------------------- /dist/CNAME: -------------------------------------------------------------------------------- 1 | laravelguide.ir -------------------------------------------------------------------------------- /dist/assets/Estedad-Light-Db7xcm9_.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MahdiyarGHD/laravel-cheat-sheet/f8980ac87ba3cac177a873ed8209915c45c59188/dist/assets/Estedad-Light-Db7xcm9_.woff2 -------------------------------------------------------------------------------- /dist/assets/Estedad-Medium-0okfNhwJ.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MahdiyarGHD/laravel-cheat-sheet/f8980ac87ba3cac177a873ed8209915c45c59188/dist/assets/Estedad-Medium-0okfNhwJ.woff2 -------------------------------------------------------------------------------- /dist/assets/icomoon-Brh8lNgu.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Generated by IcoMoon 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /dist/assets/index-Bnm5Wat6.css: -------------------------------------------------------------------------------- 1 | @font-face{font-family:icomoon;src:url(data:application/vnd.ms-fontobject;base64,RAcAAKAGAAABAAIAAAAAAAAAAAAAAAAAAAABAJABAAAAAExQAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAc6lZcQAAAAAAAAAAAAAAAAAAAAAAAA4AaQBjAG8AbQBvAG8AbgAAAA4AUgBlAGcAdQBsAGEAcgAAABYAVgBlAHIAcwBpAG8AbgAgADEALgAwAAAADgBpAGMAbwBtAG8AbwBuAAAAAAAAAQAAAAsAgAADADBPUy8yDxIGmwAAALwAAABgY21hcOoT6bYAAAEcAAAAXGdhc3AAAAAQAAABeAAAAAhnbHlmiyHOGQAAAYAAAALIaGVhZChyYvUAAARIAAAANmhoZWEHwgPJAAAEgAAAACRobXR4FgAAAAAABKQAAAAgbG9jYQKaAfYAAATEAAAAEm1heHAACwBcAAAE2AAAACBuYW1lmUoJ+wAABPgAAAGGcG9zdAADAAAAAAaAAAAAIAADA5oBkAAFAAACmQLMAAAAjwKZAswAAAHrADMBCQAAAAAAAAAAAAAAAAAAAAEQAAAAAA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AAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGljb21vb24AaQBjAG8AbQBvAG8AblZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGljb21vb24AaQBjAG8AbQBvAG8Abmljb21vb24AaQBjAG8AbQBvAG8AblJlZ3VsYXIAUgBlAGcAdQBsAGEAcmljb21vb24AaQBjAG8AbQBvAG8AbkZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=) format("woff"),url(/assets/icomoon-Brh8lNgu.svg?1ghv7r#icomoon) format("svg");font-weight:400;font-style:normal;font-display:block}[class^=icon-],[class*=" icon-"]{font-family:icomoon!important;speak:never;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-chevron-thin-down:before{content:""}.icon-search:before{content:""}.icon-moon:before{content:""}.icon-star-empty:before{content:""}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*! 2 | Theme: GitHub Dark 3 | Description: Dark theme as seen on github.com 4 | Author: github.com 5 | Maintainer: @Hirse 6 | Updated: 2021-05-15 7 | 8 | Outdated base version: https://github.com/primer/github-syntax-dark 9 | Current colors taken from GitHub's CSS 10 | */.hljs{color:#c9d1d9;background:#0d1117}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#ff7b72}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#d2a8ff}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable{color:#79c0ff}.hljs-meta .hljs-string,.hljs-regexp,.hljs-string{color:#a5d6ff}.hljs-built_in,.hljs-symbol{color:#ffa657}.hljs-code,.hljs-comment,.hljs-formula{color:#8b949e}.hljs-name,.hljs-quote,.hljs-selector-pseudo,.hljs-selector-tag{color:#7ee787}.hljs-subst{color:#c9d1d9}.hljs-section{color:#1f6feb;font-weight:700}.hljs-bullet{color:#f2cc60}.hljs-emphasis{color:#c9d1d9;font-style:italic}.hljs-strong{color:#c9d1d9;font-weight:700}.hljs-addition{color:#aff5b4;background-color:#033a16}.hljs-deletion{color:#ffdcd7;background-color:#67060c}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}@font-face{font-family:Estedad;font-style:normal;font-weight:400;font-display:swap;src:url(/assets/Estedad-Medium-0okfNhwJ.woff2) format("woff2")}@font-face{font-family:Estedad;font-style:lighter;font-weight:300;font-display:swap;src:url(/assets/Estedad-Light-Db7xcm9_.woff2) format("woff2")}body{background-color:#000818;background-image:radial-gradient(at 53.58% 0%,rgba(36,40,151,.25) 0%,transparent 50%);background-repeat:no-repeat}@media not all and (min-width: 768px){body{background-image:none}}.my-masonry-grid{display:-ms-flexbox;margin-left:-30px;margin-top:40px;display:flex;width:auto}.my-masonry-grid_column{background-clip:padding-box;padding-left:30px}.my-masonry-grid_column>div{margin-bottom:30px}p{margin-top:2px;width:100%;text-align:justify;font-size:14px;font-weight:300}code{counter-reset:line;padding-bottom:0!important}::-webkit-scrollbar{width:1rem;height:1rem;background-color:transparent}::-webkit-scrollbar-track:vertical{border-left:.0625rem solid rgba(31,204,204,.63)}::-webkit-scrollbar-corner{border-top:.0325rem solid rgba(31,204,204,.63);border-left:.0325rem solid rgba(31,204,204,.63);background-color:transparent}::-webkit-scrollbar-thumb{min-width:3rem;min-height:3rem;border-radius:1rem;border:.4rem solid transparent;background-color:#38bdf8;background-clip:content-box;-moz-background-clip:content;-webkit-background-clip:content}::-webkit-scrollbar-thumb:hover{background-color:#23789c}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.absolute{position:absolute}.relative{position:relative}.right-3{right:.75rem}.top-3{top:.75rem}.float-right{float:right}.m-auto{margin:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ml-5{margin-left:1.25rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mr-5{margin-right:1.25rem}.mr-\[5px\]{margin-right:5px}.mr-\[8px\]{margin-right:8px}.mt-0{margin-top:0}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-\[0\.85rem\]{margin-top:.85rem}.mt-\[14px\]{margin-top:14px}.mt-\[15px\]{margin-top:15px}.mt-\[3px\]{margin-top:3px}.mt-\[5px\]{margin-top:5px}.block{display:block}.flex{display:flex}.table{display:table}.contents{display:contents}.hidden{display:none}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-4{height:1rem}.h-6{height:1.5rem}.h-\[25px\]{height:25px}.h-screen{height:100vh}.w-20{width:5rem}.w-4{width:1rem}.w-\[0\.5px\]{width:.5px}.w-\[25px\]{width:25px}.w-\[80\%\]{width:80%}.w-full{width:100%}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.table-fixed{table-layout:fixed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.rounded-3xl{border-radius:1.5rem}.rounded-\[23px\]{border-radius:23px}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t-\[1px\]{border-top-width:1px}.border-none{border-style:none}.border-gray-300\/20{border-color:#d1d5db33}.border-white\/10{border-color:#ffffff1a}.border-white\/5{border-color:#ffffff0d}.border-t-blue-500\/20{border-top-color:#3b82f633}.bg-blue-500\/\[3\%\]{background-color:#3b82f608}.bg-blue-500\/\[5\%\]{background-color:#3b82f60d}.bg-blue-500\/\[8\%\]{background-color:#3b82f614}.bg-gray-200\/10{background-color:#e5e7eb1a}.bg-transparent{background-color:transparent}.bg-white\/\[3\%\]{background-color:#ffffff08}.bg-white\/\[4\%\]{background-color:#ffffff0a}.p-1{padding:.25rem}.p-4{padding:1rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.pb-4{padding-bottom:1rem}.pb-8{padding-bottom:2rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-5{padding-top:1.25rem}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-\[Estedad\]{font-family:Estedad}.font-\[monospace\]{font-family:monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\[0\.83rem\]{font-size:.83rem}.text-\[11px\]{font-size:11px}.text-\[13px\]{font-size:13px}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.text-\[\#5F677A\]{--tw-text-opacity: 1;color:rgb(95 103 122 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-white\/70{color:#ffffffb3}.text-white\/90{color:#ffffffe6}.underline{text-decoration-line:underline}.opacity-50{opacity:.5}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-3xl{--tw-backdrop-blur: blur(64px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.hover\:bg-white\/\[10\%\]:hover{background-color:#ffffff1a}.hover\:no-underline:hover{text-decoration-line:none}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.group:hover .group-hover\:text-yellow-300{--tw-text-opacity: 1;color:rgb(253 224 71 / var(--tw-text-opacity))}.group:hover .group-hover\:underline{text-decoration-line:underline}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}.data-\[state\=closed\]\:animate-accordion-up[data-state=closed]{animation:accordion-up .2s ease-out}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}.data-\[state\=open\]\:animate-accordion-down[data-state=open]{animation:accordion-down .2s ease-out}.data-\[state\=open\]\:text-\[\#5890FF\][data-state=open]{--tw-text-opacity: 1;color:rgb(88 144 255 / var(--tw-text-opacity))}@media (min-width: 640px){.sm\:w-\[360px\]{width:360px}.sm\:w-\[auto\]{width:auto}}@media (min-width: 1024px){.lg\:max-w-7xl{max-width:80rem}}.\[\&\[data-state\=open\]\>\.icon-chevron-thin-down\]\:rotate-180[data-state=open]>.icon-chevron-thin-down{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))} 11 | -------------------------------------------------------------------------------- /dist/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MahdiyarGHD/laravel-cheat-sheet/f8980ac87ba3cac177a873ed8209915c45c59188/dist/favicon.ico -------------------------------------------------------------------------------- /dist/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | راهنما و برگه‌تقلب لاراول 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | راهنما و برگه‌تقلب لاراول 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "laravel-cheat-sheet", 3 | "private": true, 4 | "version": "0.0.1", 5 | "homepage": "https://laravelguide.ir", 6 | "type": "module", 7 | "scripts": { 8 | "dev": "vite", 9 | "build": "vite build", 10 | "lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0", 11 | "preview": "vite preview" 12 | }, 13 | "dependencies": { 14 | "@radix-ui/react-accordion": "^1.2.0", 15 | "clsx": "^2.1.1", 16 | "clx": "^1.0.0", 17 | "highlight.js": "^11.9.0", 18 | "react": "^18.3.1", 19 | "react-dom": "^18.3.1", 20 | "react-masonry-css": "^1.0.16", 21 | "sass": "^1.77.6", 22 | "tailwind-merge": "^2.3.0" 23 | }, 24 | "devDependencies": { 25 | "@types/node": "^20.14.9", 26 | "@types/react": "^18.3.3", 27 | "@types/react-dom": "^18.3.0", 28 | "@vitejs/plugin-react": "^4.3.1", 29 | "autoprefixer": "^10.4.19", 30 | "eslint": "^8.57.0", 31 | "eslint-plugin-react": "^7.34.2", 32 | "eslint-plugin-react-hooks": "^4.6.2", 33 | "eslint-plugin-react-refresh": "^0.4.7", 34 | "postcss": "^8.4.38", 35 | "tailwindcss": "^3.4.4", 36 | "vite": "^5.3.1" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- 1 | export default { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | } 7 | -------------------------------------------------------------------------------- /public/CNAME: -------------------------------------------------------------------------------- 1 | laravelguide.ir -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MahdiyarGHD/laravel-cheat-sheet/f8980ac87ba3cac177a873ed8209915c45c59188/public/favicon.ico -------------------------------------------------------------------------------- /src/App.jsx: -------------------------------------------------------------------------------- 1 | import { useEffect, useState } from 'react' 2 | import Home from './pages/Home'; 3 | 4 | 5 | const App = () => { 6 | return ( 7 |
8 | 9 |
10 | ) 11 | } 12 | 13 | export default App; -------------------------------------------------------------------------------- /src/assets/fonts/Estedad/Estedad-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MahdiyarGHD/laravel-cheat-sheet/f8980ac87ba3cac177a873ed8209915c45c59188/src/assets/fonts/Estedad/Estedad-Bold.woff2 -------------------------------------------------------------------------------- /src/assets/fonts/Estedad/Estedad-Light.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MahdiyarGHD/laravel-cheat-sheet/f8980ac87ba3cac177a873ed8209915c45c59188/src/assets/fonts/Estedad/Estedad-Light.woff2 -------------------------------------------------------------------------------- /src/assets/fonts/Estedad/Estedad-Medium.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MahdiyarGHD/laravel-cheat-sheet/f8980ac87ba3cac177a873ed8209915c45c59188/src/assets/fonts/Estedad/Estedad-Medium.woff2 -------------------------------------------------------------------------------- /src/assets/fonts/Estedad/Estedad-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MahdiyarGHD/laravel-cheat-sheet/f8980ac87ba3cac177a873ed8209915c45c59188/src/assets/fonts/Estedad/Estedad-Regular.woff2 -------------------------------------------------------------------------------- /src/assets/fonts/Icomoon/fonts/icomoon.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MahdiyarGHD/laravel-cheat-sheet/f8980ac87ba3cac177a873ed8209915c45c59188/src/assets/fonts/Icomoon/fonts/icomoon.eot -------------------------------------------------------------------------------- /src/assets/fonts/Icomoon/fonts/icomoon.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Generated by IcoMoon 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /src/assets/fonts/Icomoon/fonts/icomoon.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MahdiyarGHD/laravel-cheat-sheet/f8980ac87ba3cac177a873ed8209915c45c59188/src/assets/fonts/Icomoon/fonts/icomoon.ttf -------------------------------------------------------------------------------- /src/assets/fonts/Icomoon/fonts/icomoon.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MahdiyarGHD/laravel-cheat-sheet/f8980ac87ba3cac177a873ed8209915c45c59188/src/assets/fonts/Icomoon/fonts/icomoon.woff -------------------------------------------------------------------------------- /src/assets/fonts/Icomoon/style.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'icomoon'; 3 | src: url('fonts/icomoon.eot?1ghv7r'); 4 | src: url('fonts/icomoon.eot?1ghv7r#iefix') format('embedded-opentype'), 5 | url('fonts/icomoon.ttf?1ghv7r') format('truetype'), 6 | url('fonts/icomoon.woff?1ghv7r') format('woff'), 7 | url('fonts/icomoon.svg?1ghv7r#icomoon') format('svg'); 8 | font-weight: normal; 9 | font-style: normal; 10 | font-display: block; 11 | } 12 | 13 | [class^="icon-"], [class*=" icon-"] { 14 | /* use !important to prevent issues with browser extensions that change fonts */ 15 | font-family: 'icomoon' !important; 16 | speak: never; 17 | font-style: normal; 18 | font-weight: normal; 19 | font-variant: normal; 20 | text-transform: none; 21 | line-height: 1; 22 | 23 | /* Better Font Rendering =========== */ 24 | -webkit-font-smoothing: antialiased; 25 | -moz-osx-font-smoothing: grayscale; 26 | } 27 | 28 | .icon-chevron-thin-down:before { 29 | content: "\e902"; 30 | } 31 | .icon-search:before { 32 | content: "\e901"; 33 | } 34 | .icon-moon:before { 35 | content: "\e900"; 36 | } 37 | .icon-star-empty:before { 38 | content: "\e9d7"; 39 | } 40 | -------------------------------------------------------------------------------- /src/assets/styles/index.scss: -------------------------------------------------------------------------------- 1 | @tailwind base; 2 | @tailwind components; 3 | @tailwind utilities; 4 | 5 | $custom-scrollbar-bg: transparent; 6 | $custom-scrollbar-border: rgba(31,204,204,.63); 7 | $custom-scrollbar-thumb: #38bdf8; 8 | $custom-scrollbar-thumb-hover: #23789c; 9 | 10 | @layer base { 11 | 12 | @font-face { 13 | font-family: 'Estedad'; 14 | font-style: normal; 15 | font-weight: 400; 16 | font-display: swap; 17 | src: url('../fonts/Estedad/Estedad-Medium.woff2') format('woff2'); 18 | } 19 | 20 | @font-face { 21 | font-family: 'Estedad'; 22 | font-style: lighter; 23 | font-weight: 300; 24 | font-display: swap; 25 | src: url('../fonts/Estedad/Estedad-Light.woff2') format('woff2'); 26 | } 27 | 28 | body { 29 | background-color: rgb(0, 8, 24); 30 | background-image: radial-gradient(at 53.58% 0%, rgba(36, 40, 151, 0.25) 0%, transparent 50%); 31 | background-repeat: no-repeat; 32 | @apply max-md:bg-none; 33 | } 34 | 35 | .my-masonry-grid { 36 | display: -webkit-box; 37 | display: -ms-flexbox; 38 | @apply ml-[-30px] mt-[40px] w-auto flex 39 | } 40 | .my-masonry-grid_column { 41 | @apply pl-[30px] bg-clip-padding 42 | } 43 | 44 | .my-masonry-grid_column > div { 45 | @apply mb-[30px]; 46 | } 47 | 48 | p { 49 | @apply text-[14px] mt-[2px] w-full text-justify font-light 50 | } 51 | 52 | 53 | code { 54 | counter-reset: line; 55 | padding-bottom: 0px !important; 56 | } 57 | 58 | code .line-number::before { 59 | counter-increment: line; 60 | content: counter(line); 61 | width: 2em; 62 | margin-right: 0.5em; 63 | } 64 | 65 | ::-webkit-scrollbar { 66 | width: 1rem; 67 | height: 1rem; 68 | background-color: $custom-scrollbar-bg 69 | } 70 | 71 | ::-webkit-scrollbar-track:vertical { 72 | border-left: .0625rem solid $custom-scrollbar-border 73 | } 74 | 75 | ::-webkit-scrollbar-corner { 76 | border-top: .0325rem solid $custom-scrollbar-border; 77 | border-left: .0325rem solid $custom-scrollbar-border; 78 | background-color: transparent 79 | } 80 | 81 | ::-webkit-scrollbar-thumb { 82 | min-width: 3rem; 83 | min-height: 3rem; 84 | border-radius: 1rem; 85 | border: .4rem solid transparent; 86 | background-color: $custom-scrollbar-thumb; 87 | background-clip: content-box; 88 | -moz-background-clip: content; 89 | -webkit-background-clip: content 90 | } 91 | 92 | ::-webkit-scrollbar-thumb:hover { 93 | background-color: $custom-scrollbar-thumb-hover 94 | } 95 | } -------------------------------------------------------------------------------- /src/components/Codeblock.jsx: -------------------------------------------------------------------------------- 1 | import { useEffect, useRef } from 'react'; 2 | import hljs from 'highlight.js/lib/core'; 3 | import '../lib/highlightjs/styles/github-dark.min.css'; 4 | import php from 'highlight.js/lib/languages/php'; 5 | import { isNullOrEmpty } from '../lib/utils'; 6 | 7 | const Codeblock = ({ hasHighlight = true, language = '', isLineNumberDisabled = false, children}) => { 8 | if (hasHighlight === false) 9 | return ({children}) 10 | 11 | if (!isNullOrEmpty(children.toString())) 12 | children = children.toString().replace(/^\s*[\r\n]+|[\r\n]+\s*$/g, '').replace(/^[ \t]+/gm, ''); 13 | 14 | const codeRef = useRef(null); 15 | 16 | useEffect(() => { 17 | hljs.registerLanguage('php', php); 18 | hljs.highlightElement(codeRef.current); 19 | }, []); 20 | 21 | const codeLines = children.split('\n'); 22 | 23 | return ( 24 |
25 |
26 | {codeLines.map((_, index) => ( 27 | {index + 1} 28 | ))} 29 |
30 |
31 |         
36 |           {children}
37 |         
38 |       
39 |
40 | ); 41 | }; 42 | 43 | export default Codeblock; 44 | -------------------------------------------------------------------------------- /src/components/DescriptiveCodeTable.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { 3 | Table, 4 | TableRow, 5 | TableRowItem 6 | } from '../components/Table'; 7 | 8 | const DescriptiveCodeTable = ({children}) => { 9 | 10 | const modifyCodeblocksDeeply = (children) => { 11 | return React.Children.map(children, (child) => { 12 | if (React.isValidElement(child) && child.type === React.Fragment) { 13 | return React.cloneElement(child, { 14 | children: modifyCodeblocksDeeply(child.props.children), 15 | }); 16 | } 17 | 18 | if (React.isValidElement(child) && child.type.name === 'Codeblock') { 19 | return React.cloneElement(child, { 20 | isLineNumberDisabled: true, 21 | }); 22 | } 23 | 24 | if (React.isValidElement(child) && child.props.children) { 25 | return React.cloneElement(child, { 26 | ...child.props, 27 | children: modifyCodeblocksDeeply(child.props.children), 28 | }); 29 | } 30 | 31 | return child; 32 | }); 33 | }; 34 | 35 | const addTextRightToFirstChild = (children, isFirst = true) => { 36 | return React.Children.map(children, (child) => { 37 | if (React.isValidElement(child) && child.type === React.Fragment) { 38 | return React.cloneElement(child, { 39 | children: addTextRightToFirstChild(child.props.children, false), 40 | }); 41 | } 42 | 43 | if (isFirst && React.isValidElement(child)) { 44 | const className = child.props.className ? `${child.props.className} text-right` : 'text-right'; 45 | return React.cloneElement(child, { 46 | ...child.props, 47 | className, 48 | children: addTextRightToFirstChild(child.props.children, false), 49 | }); 50 | } 51 | 52 | if (React.isValidElement(child) && child.props.children) { 53 | return React.cloneElement(child, { 54 | ...child.props, 55 | children: addTextRightToFirstChild(child.props.children, false), 56 | }); 57 | } 58 | 59 | return child; 60 | }); 61 | }; 62 | 63 | const modifiedChildren = modifyCodeblocksDeeply(children); 64 | 65 | const childrenWithModifiedFirstChild = React.Children.map(modifiedChildren, (child) => { 66 | if (React.isValidElement(child) && child.props.children) { 67 | let firstChild = React.Children.toArray(child.props.children)[0]; 68 | 69 | if (React.isValidElement(firstChild)) { 70 | const classList = firstChild.props.classList ? `${firstChild.props.classList} text-right` : 'text-right'; 71 | firstChild = React.cloneElement(firstChild, { 72 | ...firstChild.props, 73 | classList, 74 | }); 75 | } 76 | 77 | return React.cloneElement(child, { 78 | ...child.props, 79 | children: [firstChild, ...React.Children.toArray(child.props.children).slice(1)], 80 | }); 81 | } 82 | return child; 83 | }); 84 | 85 | return <> 86 | 87 | {childrenWithModifiedFirstChild} 88 |
89 | 90 | } 91 | 92 | export default DescriptiveCodeTable; -------------------------------------------------------------------------------- /src/components/Footer.jsx: -------------------------------------------------------------------------------- 1 | const Footer = () => { 2 | return ( 3 |
4 | قالب ساخته شده با 3> توسط MahdiyarGHD 5 |
6 | ); 7 | } 8 | 9 | export default Footer; -------------------------------------------------------------------------------- /src/components/Header.jsx: -------------------------------------------------------------------------------- 1 | const Header = () => { 2 | return <> 3 |
4 |
5 | {/*
6 | 7 |
8 |
*/} 9 | 10 |
ستاره بده
11 |
12 |
13 |
برگه‌تقلب‌ لاراول
14 |
15 | 16 | } 17 | 18 | export default Header; -------------------------------------------------------------------------------- /src/components/MasonryItem.jsx: -------------------------------------------------------------------------------- 1 | const MasonryItem = ({title = '', children}) => { 2 | return <> 3 |
4 |
{title}
5 |
6 | {children} 7 |
8 |
9 | 10 | 11 | } 12 | 13 | export default MasonryItem -------------------------------------------------------------------------------- /src/components/SearchInput.jsx: -------------------------------------------------------------------------------- 1 | const SearchInput = ({onChange = null}) => { 2 | return <> 3 |
4 |
5 | 6 | 7 |
8 |
9 | 10 | } 11 | 12 | export default SearchInput; -------------------------------------------------------------------------------- /src/components/Table.jsx: -------------------------------------------------------------------------------- 1 | const Table = ({ columns = [], children }) => ( 2 | 3 | 4 | 5 | {columns.map((column) => ( 6 | 9 | ))} 10 | 11 | 12 | 13 | {children} 14 | 15 |
7 | {column} 8 |
16 | ); 17 | 18 | const TableRow = ({ children, classList = '', ...props }) => ( 19 | 20 | {children} 21 | 22 | ); 23 | 24 | const TableRowItem = ({ children, classList = '', ...props }) => ( 25 | 26 | {children} 27 | 28 | ); 29 | 30 | export { Table, TableRow, TableRowItem }; 31 | -------------------------------------------------------------------------------- /src/components/TableRow.jsx: -------------------------------------------------------------------------------- 1 | export default TableRow = ({children}) => { 2 | return <> 3 | 4 | {children} 5 | 6 | 7 | } -------------------------------------------------------------------------------- /src/components/TableRowItem.jsx: -------------------------------------------------------------------------------- 1 | export default TableRowItem = ({children}) => { 2 | return <> 3 | {children} 4 | 5 | } -------------------------------------------------------------------------------- /src/components/ui/accordion.jsx: -------------------------------------------------------------------------------- 1 | import * as React from "react" 2 | import * as AccordionPrimitive from "@radix-ui/react-accordion" 3 | import "../../assets/fonts/Icomoon/style.css" 4 | import { cn } from "@/lib/utils" 5 | 6 | const Accordion = AccordionPrimitive.Root 7 | 8 | const AccordionItem = React.forwardRef(({ className, isBarHidden = false, ...props }, ref) => ( 9 | 10 | )) 11 | AccordionItem.displayName = "AccordionItem" 12 | 13 | const AccordionTrigger = React.forwardRef(({ className, children, ...props }, ref) => ( 14 | 15 | .icon-chevron-thin-down]:rotate-180 group", 19 | className 20 | )} 21 | {...props}> 22 | {children} 23 | 24 | 25 | 26 | )) 27 | AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName 28 | 29 | const AccordionContent = React.forwardRef(({ className, children, ...props }, ref) => ( 30 | 34 |
{children}
35 |
36 | )) 37 | 38 | AccordionContent.displayName = AccordionPrimitive.Content.displayName 39 | 40 | export { Accordion, AccordionItem, AccordionTrigger, AccordionContent } 41 | -------------------------------------------------------------------------------- /src/lib/highlightjs/styles/github-dark.min.css: -------------------------------------------------------------------------------- 1 | pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*! 2 | Theme: GitHub Dark 3 | Description: Dark theme as seen on github.com 4 | Author: github.com 5 | Maintainer: @Hirse 6 | Updated: 2021-05-15 7 | 8 | Outdated base version: https://github.com/primer/github-syntax-dark 9 | Current colors taken from GitHub's CSS 10 | */.hljs{color:#c9d1d9;background:#0d1117}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#ff7b72}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#d2a8ff}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable{color:#79c0ff}.hljs-meta .hljs-string,.hljs-regexp,.hljs-string{color:#a5d6ff}.hljs-built_in,.hljs-symbol{color:#ffa657}.hljs-code,.hljs-comment,.hljs-formula{color:#8b949e}.hljs-name,.hljs-quote,.hljs-selector-pseudo,.hljs-selector-tag{color:#7ee787}.hljs-subst{color:#c9d1d9}.hljs-section{color:#1f6feb;font-weight:700}.hljs-bullet{color:#f2cc60}.hljs-emphasis{color:#c9d1d9;font-style:italic}.hljs-strong{color:#c9d1d9;font-weight:700}.hljs-addition{color:#aff5b4;background-color:#033a16}.hljs-deletion{color:#ffdcd7;background-color:#67060c} -------------------------------------------------------------------------------- /src/lib/utils.jsx: -------------------------------------------------------------------------------- 1 | import { clsx } from "clsx" 2 | import { twMerge } from "tailwind-merge" 3 | 4 | export function cn(...inputs) { 5 | return twMerge(clsx(inputs)) 6 | } 7 | 8 | export function isNullOrEmpty(str) { 9 | return !str || str.trim().length === 0; 10 | } -------------------------------------------------------------------------------- /src/main.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import ReactDOM from 'react-dom/client' 3 | import App from './App.jsx' 4 | import './assets/styles/index.scss' 5 | 6 | ReactDOM.createRoot(document.getElementById('root')).render( 7 | 8 | ) 9 | -------------------------------------------------------------------------------- /src/pages/Home.jsx: -------------------------------------------------------------------------------- 1 | import Header from "../components/Header"; 2 | import SearchInput from "../components/SearchInput"; 3 | import MasonryItem from "../components/MasonryItem"; 4 | import '../assets/fonts/Icomoon/style.css'; 5 | import Codeblock from "../components/Codeblock.jsx"; 6 | import DescriptiveCodeTable from "../components/DescriptiveCodeTable.jsx"; 7 | import Footer from "../components/Footer.jsx"; 8 | import Masonry from 'react-masonry-css' 9 | import React, { useEffect, useState } from "react"; 10 | import ReactDOMServer from 'react-dom/server' 11 | import { isNullOrEmpty } from "../lib/utils.jsx"; 12 | import { 13 | Table, 14 | TableRow, 15 | TableRowItem 16 | } from '../components/Table'; 17 | import { 18 | Accordion, 19 | AccordionContent, 20 | AccordionItem, 21 | AccordionTrigger, 22 | } from "../components/ui/accordion.jsx" 23 | 24 | const Home = () => { 25 | 26 | var [filterableItems, setFilterableItems] = useState([]) 27 | useEffect(() => { 28 | setFilterableItems(items); 29 | }, []) 30 | 31 | const filterJSXByInnerHTML = (jsxArray, regexPattern) => { 32 | return jsxArray.filter(jsx => { 33 | if (React.isValidElement(jsx)) { 34 | const rawHTML = ReactDOMServer.renderToStaticMarkup(jsx); 35 | const regex = new RegExp(regexPattern, 'gi'); 36 | return regex.test(rawHTML); 37 | } 38 | return false; 39 | }); 40 | }; 41 | 42 | 43 | const onSearchInputChange = (value) => { 44 | if (isNullOrEmpty(value)) 45 | setFilterableItems(items) 46 | 47 | const filteredItems = filterJSXByInnerHTML(items, value); 48 | setFilterableItems(filteredItems); 49 | } 50 | 51 | 52 | const breakpointColumnsObj = { 53 | default: 3, 54 | 1024: 2, 55 | 700: 1 56 | }; 57 | 58 | const items = [ 59 | 60 | 61 | composer create-project laravel/laravel example-app 62 | 63 | , 64 | 65 | 66 |

67 | آرتیسان یک رابط خط فرمان است که در لاراول استفاده شده است. 68 |

69 | 70 | 71 | 72 | اجرای پروژه روی پورت دلخواه 73 | 74 | 75 | php artisan serve --port 8000 76 | 77 | 78 | 79 | 80 | 81 | ساخت مجدد فایل های اتو فریمورک لاراول 82 | 83 | 84 | php artisan dump-autoload 85 | 86 | 87 | 88 | 89 | 90 | بهینه‌سازی پروژه برای پرفورمنس بهتر 91 | 92 | 93 | php artisan optimize 94 | 95 | 96 | 97 | 98 | 99 | حذف کلاس های کامپایل شده 100 | 101 | 102 | php artisan clear-compiled 103 | 104 | 105 | 106 | 107 | 108 | بردن پروژه در حالت تعلیق 109 | 110 | 111 | php artisan down 112 | 113 | 114 | 115 | 116 | 117 | در آوردن پروژه از حالت تعلیق 118 | 119 | 120 | php artisan up 121 | 122 | 123 | 124 | 125 | 126 | ساخت یک کنترلر جدید 127 | 128 | 129 | php artisan make:controller 130 | 131 | 132 | 133 | 134 | 135 | ساخت یک کلاس ایونت جدید 136 | 137 | 138 | php artisan make:event 139 | 140 | 141 | 142 | 143 | 144 | ساخت یک کلاس ایمیل جدید 145 | 146 | 147 | php artisan make:email 148 | 149 | 150 | 151 | 152 | 153 | ساخت یک کامند جدید آرتیسان 154 | 155 | 156 | php artisan make:command 157 | 158 | 159 | 160 | 161 | 162 | ساخت یک میدِلوِر جدید 163 | 164 | 165 | php artisan make:middleware 166 | 167 | 168 | 169 | 170 | 171 | دریافت راهنمایی درباره یک کامند 172 | 173 | 174 | php artisan -h 175 | 176 | 177 | 178 | 179 | 180 | نمایش تغییرات فریمورک 181 | 182 | 183 | php artisan changes 184 | 185 | 186 | 187 | 188 | 189 | کنسول تینکر به شما اجازه میده با استفاده از کامندلاین با پروژه لاراولی‌تون ارتباط برقرار کنید 190 | 191 | 192 | php artisan tinker 193 | 194 | 195 | 196 | 197 | 198 | نمایش محتویات فایل .env 199 | 200 | 201 | php artisan env 202 | 203 | 204 | 205 | 206 | 207 | خالی کردن کش پروژه 208 | 209 | 210 | php artisan cache:clear 211 | 212 | 213 | 214 | 215 | 216 | تنظیم کلید پروژه 217 | 218 | 219 | php artisan key:generate 220 | 221 | 222 | 223 | 224 | 225 | ساخت یک کلاس رکوئست جدید 226 | 227 | 228 | php artisan make:request name 229 | 230 | 231 | 232 | 233 | 234 | برگرداندن میگریشن ها یک مرحله به عقب 235 | 236 | 237 | php artisan migrate:rollback 238 | 239 | 240 | 241 | 242 | 243 | نمایش لیست تمامی روت های ثبت شده در پروژه 244 | 245 | 246 | php artisan route:list 247 | 248 | 249 | 250 | 251 | 252 | نمایش لیست تمام دستورات آرتیسان 253 | 254 | 255 | php artisan list 256 | 257 | 258 | 259 |
, 260 | 261 | 262 |

263 | Blade یک تمپلیت انجین ساده و درعین حال قدرتمند است که در لاراول گنجانده شده است. 264 |

265 | 266 |

267 | دستورات شرطی در تمپلیت‌انجین Blade 268 |

269 | 270 | 271 | {` 272 | @unless 273 | @endunless 274 | 275 | @if 276 | @endif 277 | 278 | @else 279 | @elseif 280 | `} 281 | 282 | 283 |

284 | دستورات حلقه‌ای تمپلیت انجین Blade 285 |

286 | 287 | 288 | {` 289 | @for 290 | @endfor 291 | 292 | @foreach 293 | @endforeach 294 | 295 | @while 296 | @endwhile 297 | `} 298 | 299 | 300 |

301 | چاپ کردن محتوا در صفحه 302 |

303 | 304 | 305 | {` 306 | {{ $var }} 307 | {{{ $name or 'Default' }}} 308 | `} 309 | 310 | 311 |

312 | چاپ کردن محتوی در صفحه بدون در نظر گرفتن بحث htmlspecialchars 313 |

314 | 315 | 316 | {` 317 | {!! $var !!} 318 | `} 319 | 320 | 321 |

322 | چاپ کردن محتوای حاوی کدهای جاوااسکریپت در صفحه 323 |

324 | 325 | 326 | {` 327 | @{{ $js_code }} 328 | `} 329 | 330 | 331 |

332 | استفاده از کدهای پی‌اچ‌پی در تمپلیت‌انجین 333 |

334 | 335 | 336 | {` 337 | @php 338 | @endphp 339 | `} 340 | 341 | 342 |

343 | بارگذاری قسمت های پرتکرار سایت مانند Header 344 |

345 |

346 | بدون پسوند فایل .php.blade 347 |

348 | 349 | 350 | {` 351 | @include('header') 352 | 353 | @section('name') 354 | @endsection 355 | 356 | yield('name') 357 | 358 | extends('name') 359 | `} 360 | 361 |

362 |
, 363 | 364 | 365 |

366 | لاراول قصد دارد پیاده‌سازی احراز هویت و رمزنگاری را بسیار ساده کند. 367 |

368 | 369 |

370 | هش کردن متن وارد شده توسط خود لاراول 371 |

372 | 373 | 374 | {` 375 | Hash::make('SecretString') 376 | `} 377 | 378 | 379 |

380 | بررسی هش شده بودن متن 381 |

382 | 383 | 384 | {` 385 | Hash::check('String', $hashedString) 386 | `} 387 | 388 | 389 |

390 | رمزنگاری با قابلیت بازگشایی متن توسط لاراول 391 |

392 | 393 | 394 | {` 395 | Crypt::encrypt('secretstring') 396 | Crypt::decrypt($encryptedString) 397 | `} 398 | 399 | 400 |

401 | تنظیم کردن حالت‌های رمزنگاری 402 |

403 | 404 | 405 | {` 406 | Crypt::setMode('ctr') 407 | Crypt::setCipher($cipher) 408 | `} 409 | 410 | 411 |

412 |
, 413 | 414 | 415 |

416 | لاراول شامل انواع مختلفی از توابع همگانی کمک‌کننده‌ی PHP است. 417 |

418 | 419 | 420 | 421 | آرایه‌ها 422 | 423 |

424 | به‌هم ریختن آیتم های موجود در یک آرایه به‌صورت تصادفی 425 |

426 | 427 | {` 428 | Arr::shuffle() 429 | `} 430 | 431 | 432 |

433 | تغییر/اضافه کردن یک مقدار و یک کلید در یک آرایه 434 |

435 | 436 | {` 437 | $array = Arr::add(['name' => 'Desk'], 'price', 100); 438 | // ['name' => 'Desk', 'price' => 100'] 439 | `} 440 | 441 | 442 |

443 | مرتب کردن یک آرایه بر اساس حروف انگلیسی 444 |

445 | 446 | {` 447 | Arr::sort($array); 448 | `} 449 | 450 | 451 |

452 | ترکیب یک آرایه از آرایه‌ها درون یک آرایه 453 |

454 | 455 | {` 456 | Arr::collapse([[1, 2, 3], [4, 5, 6], [7, 8, 9]]); 457 | // [1, 2, 3, 4, 5, 6, 7, 8, 9] 458 | `} 459 | 460 | 461 |

462 | جدا کردن کلید و مقدار‌های یک آرایه در دو آرایه 463 |

464 | 465 | {` 466 | [$keys, $values] = Arr::divide(['name' => 'Desk']); 467 | `} 468 | 469 | 470 |

471 | تبدیل یک آرایه به کلاس CSS 472 |

473 | 474 | {` 475 | $array = ['p-4', 'font-bold' => $isActive, 'bg-red' => $hasError]; 476 | $classes = Arr::toCssClasses($array); 477 | // 'p-4 bg-red' 478 | `} 479 | 480 | 481 |

482 | فیلتر کردن یک آرایه بر اساس شرط داده شده 483 |

484 | 485 | {` 486 | $array = [100, '200', 300, '400', 500]; 487 | $filtered = Arr::where($array, function ($value, $key) { 488 | return is_string($value); 489 | }); 490 | // [1 => '200', 3 => '400'] 491 | `} 492 | 493 | 494 |

495 | حذف یک کلید/مقدار از یک آرایه 496 |

497 | 498 | {` 499 | $array = ['name' => 'Desk', 'price' => 100]; 500 | $filtered = Arr::except($array, ['price']); 501 | // ['name' => 'Desk'] 502 | `} 503 | 504 | 505 |

506 | فیلترکردن یک آرایه براساس کلید ها 507 |

508 | 509 | {` 510 | $array = ['name' => 'Desk', 'price' => 100, 'orders' => 10]; 511 | $slice = Arr::only($array, ['name', 'price']); 512 | // ['name' => 'Desk', 'price' => 100] 513 | `} 514 | 515 | 516 |

517 | حذف تمام مقادیر نال از یک آرایه 518 |

519 | 520 | {` 521 | $array = [0, null]; 522 | $filtered = Arr::whereNotNull($array); 523 | // [0 => 0] 524 | `} 525 | 526 | 527 |

528 | بررسی وجود داشتن یک کلید در یک آرایه 529 |

530 | 531 | {` 532 | $array = ['name' => 'John Doe', 'age' => 17]; 533 | $exists = Arr::exists($array, 'name'); 534 | // true 535 | `} 536 | 537 | 538 |

539 | تبدیل یک متن/عدد به آرایه 540 |

541 | 542 | {` 543 | $string = 'Laravel'; 544 | $array = Arr::wrap($string); 545 | // ['Laravel'] 546 | `} 547 | 548 | 549 |

550 | اضافه کردن یک مقدار به اول آرایه 551 |

552 | 553 | {` 554 | $array = ['one', 'two', 'three', 'four']; 555 | $array = Arr::prepend($array, 'zero'); 556 | // ['zero', 'one', 'two', 'three', 'four'] 557 | `} 558 | 559 | 560 |

561 | تبدیل یک آرایه به کوئری استرینگ 562 |

563 | 564 | {` 565 | $array = [ 566 | 'name' => 'Taylor', 567 | 'order' => [ 568 | 'column' => 'created_at', 569 | 'direction' => 'desc' 570 | ] 571 | ]; 572 | Arr::query($array); 573 | // name=Taylor&order[column]=created_at&order[direction]=desc 574 | `} 575 | 576 | 577 |

578 | برگرداندن یک مقدار به‌صورت رندوم از آرایه 579 |

580 | 581 | {` 582 | $array = [1, 2, 3, 4, 5]; 583 | $random = Arr::random($array); 584 | // 4 - (دریافت شده به‌صورت تصادفی) 585 | `} 586 | 587 | 588 |

589 | برگرداندن مقدار اولین ایندکس یک آرایه 590 |

591 | 592 | {` 593 | $first = head($array); 594 | `} 595 | 596 | 597 |

598 | برگرداندن مقدار آخرین ایندکس یک آرایه 599 |

600 | 601 | {` 602 | $last = last($array); 603 | `} 604 | 605 |
606 |
607 | 608 | رشته‌ها 609 | 610 |

611 | دریافت ترجمه یک بخش با استفاده از localization 612 |

613 | 614 | {` 615 | echo __('Welcome to our application'); 616 | echo __('messages.welcome'); 617 | `} 618 | 619 | 620 |

621 | جای‌گذاری موارد خواسته شده در یک پترن رجکس در متن با اعضای یک آرایه 622 |

623 | 624 | {` 625 | $string = 'The event will take place between :start and :end'; 626 | $replaced = preg_replace_array('/:[a-z_]+/', ['8:30', '9:00'], $string); 627 | // The event will take place between 8:30 and 9:00 628 | `} 629 | 630 | 631 |

632 | برگرداندن متن بعد یک مقدار رشته‌ای 633 |

634 | 635 | {` 636 | $slice = Str::after('This is my name', 'This is'); 637 | // ' my name' 638 | `} 639 | 640 | 641 |

642 | برگرداندن متن قبل یک مقدار رشته‌ای 643 |

644 | 645 | {` 646 | $slice = Str::before('This is my name', 'my name'); 647 | // 'This is ' 648 | `} 649 | 650 | 651 |

652 | برگرداندن متن بین دو مقدار رشته‌ای 653 |

654 | 655 | {` 656 | $slice = Str::between('This is my name', 'This', 'name'); 657 | // ' is my ' 658 | `} 659 | 660 | 661 |

662 | برگرداندن مقدار وارد شده به‌صورت camelCase 663 |

664 | 665 | {` 666 | $converted = Str::camel('foo_bar'); 667 | // fooBar 668 | `} 669 | 670 | 671 |

672 | برگرداندن مقدار true درصورت وجود رشته‌ی وارد شده در متن 673 |

674 | 675 | {` 676 | $contains = Str::contains('This is my name', 'my'); 677 | // true 678 | `} 679 | 680 | 681 |

682 | در صورت این‌که رشته‌ی وارد شده در آخر متن باشد مقدار true برگردانده می‌شود 683 |

684 | 685 | {` 686 | $result = Str::endsWith('This is my name', 'name'); 687 | // true 688 | `} 689 | 690 | 691 |

692 | تبدیل Markdown به HTML 693 |

694 | 695 | {` 696 | $html = Str::inlineMarkdown('**Laravel**'); 697 | // Laravel 698 | `} 699 | 700 | 701 |

702 | برگرداندن مقدار true درصورت این‌که رشته‌ی وارد شده یک نوع داده‌ی JSON باشد 703 |

704 | 705 | {` 706 | $result = Str::isJson('{"first": "John", "last": "Doe"}'); 707 | // true 708 | `} 709 | 710 | 711 |

712 | برگرداندن طول یک رشته 713 |

714 | 715 | {` 716 | $length = Str::length('Laravel'); 717 | `} 718 | 719 | 720 |

721 | اعمال محدودیت روی یک رشته بر اساس طول رشته 722 |

723 | 724 | {` 725 | $truncated = Str::limit('The quick brown fox jumps over the lazy dog', 20); 726 | // The quick brown fox... 727 | `} 728 | 729 | 730 |

731 | تبدیل حروف کوچک به حروف بزرگ در یک رشته 732 |

733 | 734 | {` 735 | $converted = Str::lower('LARAVEL'); 736 | `} 737 | 738 | 739 |

740 | پنهان کردن حروف رشته‌ی وارد شده بعد از مقدار مشخص شده در پارامتر سوم 741 |

742 | 743 | {` 744 | $string = Str::mask('taylor@example.com', '*', 3); 745 | // tay*************** 746 | `} 747 | 748 | 749 |

750 | حذف یک حرف از کل رشته 751 |

752 | 753 | {` 754 | $string = 'Peter Piper picked a peck of pickled peppers.'; 755 | $removed = Str::remove('e', $string); 756 | // Ptr Pipr pickd a pck of pickld ppprs. 757 | `} 758 | 759 | 760 |

761 | جای گذاری متن 762 |

763 | 764 | {` 765 | $string = 'Laravel 8.x'; 766 | $replaced = Str::replace('8.x', '9.x', $string); 767 | // Laravel 9.x 768 | `} 769 | 770 | 771 |

772 | جای گذاری موارد مشخص شده در متن با اعضای آرایه 773 |

774 | 775 | {` 776 | $string = 'The event will take place between ? and ?'; 777 | $replaced = Str::replaceArray('?', ['8:30', '9:00'], $string); 778 | // The event will take place between 8:30 and 9:00 779 | `} 780 | 781 | 782 |

783 | برعکس کردن متن 784 |

785 | 786 | {` 787 | $reversed = Str::reverse('Hello World'); 788 | // dlroW olleH 789 | `} 790 | 791 | 792 |

793 | حذف اسپیس‌های اضافی در رشته 794 |

795 | 796 | {` 797 | $string = Str::squish(' laravel framework '); 798 | // laravel framework 799 | `} 800 | 801 | 802 |

803 | تبدیل یک رشته به TitleCase 804 |

805 | 806 | {` 807 | $converted = Str::title('a nice title uses the correct case'); 808 | // A Nice Title Uses The Correct Case 809 | `} 810 | 811 | 812 |

813 | تبدیل حروف کوچک در متن به حروف بزرگ 814 |

815 | 816 | {` 817 | $string = Str::upper('laravel'); 818 | // LARAVEL 819 | `} 820 | 821 | 822 |

823 | شمردن تعداد کلمات در یک رشته 824 |

825 | 826 | {` 827 | $count = Str::wordCount('This is a sentence.'); 828 | // 4 829 | `} 830 | 831 | 832 |

833 | درصورت وجود اعضای یک آرایه در یک رشته مقدار true برگردانده می‌شود 834 |

835 | 836 | {` 837 | $containsAll = Str::of('This is my name')->containsAll(['my', 'name']); 838 | // true 839 | `} 840 | 841 |
842 |
843 | 844 | لینک‌ها 845 | 846 |

847 | دریافت لینک یک اکشنِ کنترلر 848 |

849 | 850 | {` 851 | $url = action([HomeController::class, 'index']); 852 | `} 853 | 854 | 855 |

856 | ساخت لینک برای فایل های asset 857 |

858 | 859 | {` 860 | $url = asset('img/photo.jpg'); 861 | `} 862 | 863 | 864 |

865 | دریافت لینک با استفاده از نام مسیر 866 |

867 | 868 | {` 869 | $url = route('route.name'); 870 | `} 871 | 872 | 873 |

874 | ساخت لینک HTTPS برای فایل های asset 875 |

876 | 877 | {` 878 | $url = secure_asset('img/photo.jpg'); 879 | `} 880 | 881 | 882 |

883 | دریافت لینک HTTPS با استفاده از نام مسیر 884 |

885 | 886 | {` 887 | $url = secure_url('user/profile'); 888 | `} 889 | 890 |
891 |
892 | 893 | متفرقه 894 | 895 |

896 | هدایت کردن به یک HTTP exception 897 |

898 | 899 | {` 900 | abort(403, 'Unauthorized.', $headers); 901 | `} 902 | 903 | 904 |

905 | هدایت کردن به یک HTTP exception درصورت true بودن مقدار ورودی 906 |

907 | 908 | {` 909 | abort_if(! Auth::user()->isAdmin(), 403); 910 | `} 911 | 912 | 913 |

914 | ساخت یک نمونه از کلاس احرازهویت 915 |

916 | 917 | {` 918 | auth(); 919 | $user = auth()->user(); 920 | `} 921 | 922 | 923 |

924 | هدایت کاربر به صفحه قبلی 925 |

926 | 927 | {` 928 | return back(); 929 | `} 930 | 931 | 932 |

933 | دریافت یک آیتم از کش 934 |

935 | 936 | {` 937 | $value = cache('key'); 938 | `} 939 | 940 | 941 |

942 | دریافت یک مقدار از کانفیگ پروژه 943 |

944 | 945 | {` 946 | config(); 947 | $value = config('app.timezone'); 948 | `} 949 | 950 | 951 |

952 | ساخت کوکی 953 |

954 | 955 | {` 956 | $cookie = cookie('name', 'value', $minutes); 957 | `} 958 | 959 | 960 |

961 | ساخت یک اینپوت مخفی حاوی توکن CSRF 962 |

963 | 964 | {` 965 | csrf_field(); 966 | {{ csrf_field() }} 967 | `} 968 | 969 | 970 |

971 | دریافت توکن CSRF 972 |

973 | 974 | {` 975 | $token = csrf_token(); 976 | `} 977 | 978 | 979 |

980 | دریافت یک مقدار از تنظیمات env 981 |

982 | 983 | {` 984 | env(); 985 | `} 986 | 987 | 988 |

989 | ساخت اطلاعات فیک 990 |

991 | 992 | {` 993 | fake(); 994 | {{ fake()->name() }} 995 | `} 996 | 997 | 998 |

999 | نوشتن لاگ 1000 |

1001 | 1002 | {` 1003 | logger('Debug message'); 1004 | logger('User has logged in.', ['id' => $user->id]); 1005 | `} 1006 | 1007 | 1008 |

1009 | دریافت زمان فعلی 1010 |

1011 | 1012 | {` 1013 | now(); 1014 | `} 1015 | 1016 | 1017 |

1018 | هدایت کاربر به یک مسیر/روت 1019 |

1020 | 1021 | {` 1022 | return redirect('/home'); 1023 | return redirect()->route('route.name'); 1024 | `} 1025 | 1026 | 1027 |

1028 | ایجاد یک نمونه از صحت‌سنج 1029 |

1030 | 1031 | {` 1032 | $validator = validator($data, $rules, $messages); 1033 | `} 1034 | 1035 | 1036 |

1037 | ایجاد یک نمونه از یک ویو 1038 |

1039 | 1040 | {` 1041 | return view('auth.login'); 1042 | `} 1043 | 1044 |
1045 |
1046 |
1047 |
, 1048 | 1049 | 1050 | 1051 |

لاراول یک روش شئ‌گرا برای تعامل با «درخواست‌های HTTP» فعلی که توسط برنامه شما نیز مدیریت می‌شود ارائه می‌کند.

1052 | 1053 | 1054 | 1055 | دریافت نوع رکوئست 1056 | 1057 | 1058 | Request::method() 1059 | 1060 | 1061 | 1062 | 1063 | 1064 | بررسی نوع یک ریکوئست با متود مشخص شده 1065 | 1066 | 1067 | Request::isMethod('post') 1068 | 1069 | 1070 | 1071 | 1072 | 1073 | دریافت پورت ریکوئست 1074 | 1075 | 1076 | Request::getPort() 1077 | 1078 | 1079 | 1080 | 1081 | 1082 | برگرداندن مقدار صحیح اگر هدر ریکوئست حاوی json/* 1083 | 1084 | 1085 | Request::isJson() 1086 | 1087 | 1088 | 1089 | 1090 | 1091 | دریافت ایپی کاربر 1092 | 1093 | 1094 | Request::getClientIp() 1095 | 1096 | 1097 | 1098 | 1099 | 1100 | دریافت URi مسیر جاری 1101 | 1102 | 1103 | {`Request->path()`} 1104 | 1105 | 1106 | 1107 | 1108 | 1109 | برگرداندن مقدار صحیح اگر هدر ریکوئست حاوی aplication/json باشد 1110 | 1111 | 1112 | Request::wantsJson() 1113 | 1114 | 1115 | 1116 | 1117 | 1118 | دریافت آدرس جاری به صورت کامل 1119 | 1120 | 1121 | Request::url() 1122 | 1123 | 1124 | 1125 | 1126 |
, 1127 | 1128 |

1129 | لاراول به لطف پکیج بی‌نظیرِ Flysystem یک سیستم مدیریت فایل قدرتمند ارائه می‌دهد. 1130 |

1131 | 1132 |

1133 | بررسی وجود داشتن یک آدرس 1134 |

1135 | 1136 | {` 1137 | Storage::exists('your-path'); 1138 | `} 1139 | 1140 | 1141 |

1142 | ویرایش محتوا یک فایل (پارامتر اول آدرس فایل و پارامتر دوم محتوا) 1143 |

1144 | 1145 | {` 1146 | Storage::put('file.jpg', $contents); 1147 | `} 1148 | 1149 | 1150 |

1151 | افزودن متن به فایلی که آدرس آن در پارامتر اول قرار داده شده 1152 |

1153 | 1154 | {` 1155 | Storage::append('file.log', 'Appended Text'); 1156 | `} 1157 | 1158 | 1159 |

1160 | (ورودی می‌تواند آرایه‌ای از نام فایل‌ها باشد) پاک کردن فایل توسط آدرس فایل 1161 |

1162 | 1163 | {` 1164 | Storage::delete('file.jpg'); 1165 | `} 1166 | 1167 | 1168 |

1169 | جابه‌جایی فایل از مکانی به مکان دیگر 1170 |

1171 | 1172 | {` 1173 | Storage::move('old/file.jpg', 'new/file.jpg'); 1174 | `} 1175 | 1176 | 1177 |

1178 | کپی کردن فایل از مکانی به مکان دیگر 1179 |

1180 | 1181 | {` 1182 | Storage::copy('old/file.jpg', 'new/file.jpg'); 1183 | `} 1184 | 1185 | 1186 |

1187 | ساخت یک لینک موقت برای فایل‌ها 1188 |

1189 | 1190 | {` 1191 | $url = Storage::temporaryUrl( 1192 | 'file.jpg', now()->addMinutes(5) 1193 | ); 1194 | `} 1195 | 1196 | 1197 |

1198 | دریافت تمام دایرکتوری های درون یک دایرکتوری 1199 |

1200 | 1201 | {` 1202 | Storage::directories($directory); 1203 | `} 1204 | 1205 | 1206 |

1207 | دریافت لینک یک فایل 1208 |

1209 | 1210 | {` 1211 | $url = Storage::url('file.jpg'); 1212 | `} 1213 | 1214 | 1215 |

1216 | دریافت اخرین تاریخ ساخت/ویرایش یک فایل 1217 |

1218 | 1219 | {` 1220 | Storage::lastModified('file.jpg'); 1221 | `} 1222 | 1223 | 1224 |

1225 | دریافت تمام فایل های یک دایرکتوری بصورت آرایه 1226 |

1227 | 1228 | {` 1229 | Storage::files($directory); 1230 | `} 1231 | 1232 | 1233 |

1234 | ساخت یک دایرکتوری 1235 |

1236 | 1237 | {` 1238 | Storage::makeDirectory($directory); 1239 | `} 1240 | 1241 | 1242 |

1243 | حذف یک دایرکتوری 1244 |

1245 | 1246 | {` 1247 | Storage::deleteDirectory($directory); 1248 | `} 1249 | 1250 |

1251 |
, 1252 | 1253 | 1254 | 1255 |

1256 | لاراول در تلاش است تا ابزارهایی را که برای اجرای سریع، ایمن و آسان «احراز هویت» نیاز دارید در اختیار شما قرار دهد.

1257 | 1258 |

1259 | چک کردن لاگین بودن کاربر 1260 |

1261 | 1262 | 1263 | {` 1264 | Auth::check() 1265 | 1266 | // مثال 1267 | if(Auth::check()) 1268 | { 1269 | // User Logined 1270 | } 1271 | `} 1272 | 1273 | 1274 |

1275 | دریافت اطلاعات کاربر لاگین شده‌ 1276 |

1277 | 1278 | 1279 | {` 1280 | Auth::user() 1281 | `} 1282 | 1283 | 1284 |

1285 | دریافت آیدی کاربر لاگین شده 1286 |

1287 | 1288 | 1289 | {` 1290 | Auth::id() 1291 | `} 1292 | 1293 | 1294 |

1295 | خارج کردن کاربر لاگین شده از حساب کاربری 1296 |

1297 | 1298 | 1299 | {` 1300 | Auth::logout() 1301 | `} 1302 | 1303 | 1304 |

1305 | لاگین کردن کاربر با استفاده از آيدی 1306 |

1307 | 1308 | 1309 | {` 1310 | Auth::loginUsingId(1) 1311 | Auth::login(User::find(1)) 1312 | `} 1313 | 1314 | 1315 |

1316 | دستور شرطی بررسی لاگین بودن کاربر در تمپلیت انجین Blade 1317 |

1318 | 1319 | 1320 | {` 1321 | @auth 1322 | // User Logined 1323 | @endauth 1324 | `} 1325 | 1326 | 1327 |

1328 | ارسال یک یادآور پسورد برای کاربر 1329 |

1330 | 1331 | 1332 | {` 1333 | Password::remind($credentials, function($message, $user){}) 1334 | `} 1335 | 1336 | 1337 |

1338 | ایجاد 'مرا به خاطر بسپار' 1339 |

1340 | 1341 | 1342 | {` 1343 | Auth::attempt($credentials, true) 1344 | `} 1345 | 1346 | 1347 |

1348 | بررسی صحت مشخصات یک کاربر 1349 |

1350 | 1351 | 1352 | {` 1353 | Auth::validate($credentials) 1354 | `} 1355 | 1356 | 1357 |

1358 | ایجاد 'مرا به خاطر بسپار' با استفاده از ایمیل و پسورد کاربر‌‌ 1359 |

1360 | 1361 | 1362 | {` 1363 | Auth::attempt(array('email' => $email, 'password' => $password)) 1364 | `} 1365 | 1366 | 1367 |

1368 | لاگین کردن کاربر فقط یک بار بدون ذخیره کردن کوکی 1369 |

1370 | 1371 | 1372 | {` 1373 | Auth::once($credentials) 1374 | `} 1375 | 1376 | 1377 |

1378 |
, 1379 | 1380 | 1381 |

در حین تکرار در یک حلقه foreach، یک متغیر loop$ در حلقه شما دردسترس خواهد بود.

1382 |

1383 | دریافت ایندکس فعلی حلقه (از 0 شروع می‌شود) 1384 |

1385 | 1386 | {` 1387 | @foreach ($posts as $post) 1388 | Current index: {{ $loop->index }} 1389 | @endforeach 1390 | `} 1391 | 1392 | 1393 |

1394 | دریافت تعداد دفعاتی که از چرخش حلقه باقی مانده است 1395 |

1396 | 1397 | 1398 | {` 1399 | @foreach ($posts as $post) 1400 | {{ $loop->remaining }} 1401 | @endforeach 1402 | `} 1403 | 1404 | 1405 |

1406 | دریافت تعداد کل آیتم های موجود در آرایه 1407 |

1408 | 1409 | 1410 | {` 1411 | @foreach ($posts as $post) 1412 | {{ $loop->count }} 1413 | @endforeach 1414 | `} 1415 | 1416 | 1417 |

1418 | دریافت تعداد دفعاتی که تا به‌حال حلقه اجرا شده (از یک شروع می‌شود) 1419 |

1420 | 1421 | 1422 | {` 1423 | @foreach ($posts as $post) 1424 | {{ $loop->iteration }} 1425 | @endforeach 1426 | `} 1427 | 1428 | 1429 |

1430 | تشخیص اولین چرخش حلقه (Boolean) 1431 |

1432 | 1433 | 1434 | {` 1435 | @foreach ($posts as $post) 1436 | @if ($loop->first) 1437 | // 1438 | @endif 1439 | @endforeach 1440 | `} 1441 | 1442 | 1443 |

1444 | تشخیص آخرین چرخش حلقه (Boolean) 1445 |

1446 | 1447 | 1448 | {` 1449 | @foreach ($posts as $post) 1450 | @if ($loop->last) 1451 | // 1452 | @endif 1453 | @endforeach 1454 | `} 1455 | 1456 | 1457 |

1458 | برگرداندن مقدار loop$ حلقه‌ی والد 1459 |

1460 | 1461 | 1462 | {` 1463 | @foreach ($posts as $post) 1464 | @foreach($post->comments as $comment) 1465 | {{ $loop->parent->iteration }} 1466 | @endforeach 1467 | @endforeach 1468 | `} 1469 | 1470 |

1471 |
1472 | , 1473 | ]; 1474 | 1475 | return <> 1476 |
1477 |
1478 | برگه‌تقلب‌ لاراول 1479 |
1480 | onSearchInputChange(v.target.value)} /> 1481 | 1486 | {filterableItems.map((o) =>
{o}
)} 1487 |
1488 |